Part Number Hot Search : 
BC4004A MX7841BS ANP21F4C 22CT9 STLS10 TLP227GA 24LC2 FP3003
Product Description
Full Text Search
 

To Download SAL-XC886CLM Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet v1.0 2010-05 microcontrollers 8-bit SAL-XC886CLM 8-bit single chip microcontroller
edition 2010-05 published by infineon technologies ag 81726 munich, germany ? 2010 infineon technologies ag all rights reserved. legal disclaimer the information given in this document shall in no event be regarded as a guarantee of conditions or characteristics. with respect to any examples or hints given herein, any typical values stated herein and/or any information regarding the application of the device, infineon technologies hereby disclaims any and all warranties and liabilities of any kind, including without limitation, warr anties of non-infringement of intellectual property rights of any third party. information for further information on technology, delivery terms and conditions and prices, please contact the nearest infineon technologies office ( www.infineon.com ). warnings due to technical requirements, components may contain dangerous substances. for information on the types in question, please contact the nearest infineon technologies office. infineon technologies components may be used in life-support devices or systems only with the express written approval of infineon technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life. if they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
data sheet v1.0 2010-05 microcontrollers 8-bit SAL-XC886CLM 8-bit single chip microcontroller
SAL-XC886CLM data sheet v1.0, 2010-05 sal-xc886 data sheet revision history: v1.0 2010-05 previous versions: none page subjects (major chan ges since last revision) we listen to your comments any information within this docu ment that you feel is wrong, unclear or missing at all? your feedback will help us to continuously improve the quality of this document. please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com
SAL-XC886CLM table of contents data sheet i-1 v1.0, 2010-05 1 summary of features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 general device information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.1 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2 logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.3 pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.4 pin definitions and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.1 processor architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.2 memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.2.1 memory protection strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.2.1.1 flash memory protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.2.2 special function regist er . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.2.2.1 address extension by mappi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.2.2.2 address extension by paging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.2.3 bit protection scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.2.3.1 password register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.2.4 sal-xc886 register overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.2.4.1 cpu registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.2.4.2 mdu registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.2.4.3 cordic registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.2.4.4 system control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.2.4.5 wdt registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 3.2.4.6 port registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 3.2.4.7 adc registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 3.2.4.8 timer 2 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3.2.4.9 timer 21 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3.2.4.10 ccu6 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 3.2.4.11 uart1 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.2.4.12 ssc registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.2.4.13 multican registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.2.4.14 ocds registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 3.3 flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 3.3.1 flash bank sectorizat ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 3.3.2 parallel read access of p-flas h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 3.3.3 flash programmin g width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 3.4 interrupt system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.4.1 interrupt source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.4.2 interrupt source and vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 3.4.3 interrupt priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 3.5 parallel ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 table of contents
SAL-XC886CLM table of contents data sheet i-2 v1.0, 2010-05 3.6 power supply system with embedded voltage regulator . . . . . . . . . . . . 65 3.7 reset control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 3.7.1 module reset behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 3.7.2 booting scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 3.8 clock generation unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 3.8.1 recommended external oscilla tor circuits . . . . . . . . . . . . . . . . . . . . . . 72 3.8.2 clock management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 3.9 power saving modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 3.10 watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 3.11 multiplication/div ision unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 3.12 cordic coprocessor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 3.13 uart and uart1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 3.13.1 baud-rate generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 3.13.2 baud rate generation using timer 1 . . . . . . . . . . . . . . . . . . . . . . . . . . 85 3.14 normal divider mode (8-bit auto-reload timer) . . . . . . . . . . . . . . . . . . . . . 85 3.15 lin protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 3.15.1 lin header transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 3.16 high-speed synchronous serial interface . . . . . . . . . . . . . . . . . . . . . . . . . 88 3.17 timer 0 and timer 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 3.18 timer 2 and timer 21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 3.19 capture/compare unit 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 3.20 controller area netw ork (multican) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 3.21 analog-to-digital converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 3.21.1 adc clocking scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 3.21.2 adc conversion seq uence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 3.22 on-chip debug support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 3.22.1 jtag id register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 3.23 chip identification number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 4 electrical parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 4.1 general parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 4.1.1 parameter interpretation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 4.1.2 absolute maximum rating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 4.1.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 4.2 dc parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 4.2.1 input/output characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 4.2.2 supply threshold characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 4.2.3 adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 4.2.3.1 adc conversion timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 4.2.4 power supply current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 4.3 ac parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 4.3.1 testing waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 4.3.2 output rise/fall ti mes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
SAL-XC886CLM table of contents data sheet i-3 v1.0, 2010-05 4.3.3 power-on reset and pll timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 4.3.4 on-chip oscillator characte ristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 4.3.5 external clock drive xtal1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 4.3.6 jtag timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 4.3.7 ssc master mode timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 5 package and quality declaration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 5.1 package parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 5.2 package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 5.3 quality declaration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
data sheet 1 v1.0, 2010-05 SAL-XC886CLM 8-bit single chip microcontroller 1 summary of features the sal-xc886 has t he following features: ? high-performance xc800 core ? compatible with sta ndard 8051 processor ? two clocks per machine cycle architecture (for memory access without wait state) ? two data pointers ? on-chip memory ? 12 kbytes of boot rom ? 256 bytes of ram ? 1.5 kbytes of xram ? 24/32 kbytes of flash (includes memory protection strategy) ? i/o port supply at 5.0 v and core logic supply at 2.5 v (generat ed by embedded voltage regulator) (more features on next page) figure 1 sal-xc886 fu nctional units port 0 port 1 port 2 port 3 xc800 core uart adc 10-bit 8-channel boot rom 12k x 8 xram 1.5k x 8 ram 256 x 8 on-chip debug support timer 0 16-bit timer 1 16-bit timer 2 16-bit uart1 ssc flash 24k/32k x 8 capture/compare unit 16-bit compare unit 16-bit 7- bit digital i/o 8- bit digital i/o 8- bit digital i/o 8-bit digital/ analog input port 4 mdu cordic multican timer 21 16-bit watchdog timer 3- bit digital i/o
SAL-XC886CLM summary of features data sheet 2 v1.0, 2010-05 features: (continued) ? power-on reset generation ? brownout detection fo r core logic supply ? on-chip osc and pll for clock generation ? pll loss-of-lock detection ? power saving modes ? slow-down mode ? idle mode ? power-down mode with wake-up ca pability via rxd or exint0 ? clock gating contro l to each peripheral ? programmable 16-bit watchdog timer (wdt) ?six ports ? up to 48 pins as digital i/o ? 8 pins as digital/analog input ? 8-channel, 10-bit adc ? four 16-bit timers ? timer 0 and time r 1 (t0 and t1) ? timer 2 and ti mer 21 (t2 and t21) ? multiplication/division unit fo r arithmetic operations (mdu) ? software libraries to support fl oating point and mdu calculations ? cordic coprocessor for computation of trigonometric, hy perbolic and linear functions ? multican with 2 nodes , 32 message objects ? capture/compare unit for pw m signal generation (ccu6) ? two full-duplex serial in terfaces (uart and uart1) ? synchronous serial channel (ssc) ? on-chip debug support ? 1 kbyte of monitor rom (part of the 12-kbyte boot rom) ? 64 bytes of monitor ram ? package: ? pg-tqfp-48 ? temperature range t a : ? sal (-40 to 150 c)
SAL-XC886CLM summary of features data sheet 3 v1.0, 2010-05 sal-xc886 variant devices the sal-xc886 product family features devices with di fferent configurations and program memory sizes, to offer cost-eff ective solutions for different application requirements. the list of sal-xc886 device conf igurations are summarized in table 1 . note: for variants with lin bsl support, only lin bsl is available regardless of the availability of the can module. as this document refers to all the derivatives, some de scription may not apply to a specific product. for simplic ity, all versions are referred to by the term sal-xc886 throughout this document. ordering information the ordering code for infineo n technologies microcontrol lers provides an exact reference to the required produc t. this ordering code identifies: ? the derivative itself, i.e. its function set, the temper ature range, and the supply voltage ? the package and the type of delivery for the available ordering codes for the sal-x c886, please refer to your responsible sales representative or your local distributor. table 1 device profile device type sales type program memory (kbytes) can module lin bsl support mdu module flash sal-xc886-8ffa 5v 32 no no no sal-xc886c-8ffa 5v 32 yes no no sal-xc886cm-8ffa 5v 32 yes no yes sal-xc886lm-8ffa 5v 32 no yes yes SAL-XC886CLM-8ffa 5v 32 yes yes yes sal-xc886-6ffa 5v 24 no no no sal-xc886c-6ffa 5v 24 yes no no sal-xc886cm-6ffa 5v 24 yes no yes sal-xc886lm-6ffa 5v 24 no yes yes SAL-XC886CLM-6ffa 5v 24 yes yes yes
SAL-XC886CLM general device information data sheet 4 v1.0, 2010-05 2 general device information chapter 2 contains the block diagram, pin configur ations, definitions and functions of the sal-xc886. 2.1 block diagram the block diagram of t he sal-xc886 is shown in figure 2 . figure 2 sal-xc886 block diagram adc port 0 port 1 port 2 port 3 uart 1 cordic ssc mdu timer 2 12-kbyte boot rom 1) 256-byte ram + 64-byte monitor ram 1.5-kbyte xram 24/32-kbyte flash xc800 core t0 & t1 uart 1) includes 1-kbyte monitor rom p0.0 - p0.5, p0.7 p1.0 - p1.7 p3.0 - p3.7 p2.0 - p2.7 v aref v agnd clock generator 9.6 mhz on-chip osc pll xtal 1 xtal 2 internal bus v ddp v ssp v ddc v ssc reset tms mbc sal -xc886 timer 21 ccu 6 multican port 4 p4.0 - p4.1, p4.3 wdt ocds
SAL-XC886CLM general device information data sheet 5 v1.0, 2010-05 2.2 logic symbol the logic symbols of the sal-xc886 are shown in figure 3 . figure 3 sal-xc886 logic symbol xc886 v ddp v ssp v ddc v ssc v aref v agnd xtal1 xtal2 tms reset mbc port 0 7-bit port 1 8-bit port 3 8-bit port 2 8-bit port 4 3-bit
SAL-XC886CLM general device information data sheet 6 v1.0, 2010-05 2.3 pin configuration the pin configuration of th e xc886, which is based on the pg-tqfp-48 package, is shown in figure 4 . figure 4 xc886 pin configurat ion, pg-tqfp-48 package (top view) xc886 123 456789101112 13 14 15 24 23 22 21 20 19 18 17 16 36 35 34 33 32 31 30 29 28 27 26 25 48 47 46 37 38 39 40 41 42 43 44 45 reset p3.5 p3.4 p4.1 p4.0 p0.3 p0. 4 mbc p3.2 p3.3 p0.7 v ddp v ssp p0. 0 p0. 5 p1. 6 p1. 7 v ssc v ddc xtal2 xtal1 tms p2.2 v ddp v ssp p2.0 p 2 . 1 p2.4 p2.3 p2.5 p2.6 v aref v agnd p0. 2 p 0 . 1 p1.3 p1.4 p1.2 p1.0 p1.1 p1.5 p2.7 p3.0 p3.1 p3.6 p3.7 p4.3 v ddp
SAL-XC886CLM general device information data sheet 7 v1.0, 2010-05 2.4 pin definitions and functions the functions and defa ult states of the sal-xc886 ex ternal pins are provided in table 2 . table 2 pin definiti ons and functions symbol pin number type reset state function p0 i/o port 0 port 0 is an 8-bit bidi rectional general purpose i/o port. it can be used as alternate functions for the jtag, ccu6, ua rt, uart1, timer 2, timer 21, multican and ssc. p0.0 11 hi-z tck_0 t12hr_1 cc61_1 clkout_0 rxdo_1 jtag clock input ccu6 timer 12 hardware run input input/output of capture/compare channel 1 clock output uart transmit data output p0.1 13 hi-z tdi_0 t13hr_1 rxd_1 rxdc1_0 cout61_1 exf2_1 jtag serial data input ccu6 timer 13 hardware run input uart receive data input multican node 1 receiver input output of ca pture/compare channel 1 timer 2 external flag output p0.2 12 pu ctrap_2 tdo_0 txd_1 txdc1_0 ccu6 trap input jtag serial data output uart transmit data output/clock output multican node 1 transmitter output p0.3 48 hi-z sck_1 cout63_1 rxdo1_0 ssc clock input/output output of ca pture/compare channel 3 uart1 transmit data output
SAL-XC886CLM general device information data sheet 8 v1.0, 2010-05 p0.4 1 hi-z mtsr_1 cc62_1 txd1_0 ssc master transmit output/ slave receive input input/output of capture/compare channel 2 uart1 transmit data output/clock output p0.5 2 hi-z mrst_1 exint0_0 t2ex1_1 rxd1_0 cout62_1 ssc master receive input/slave transmit output external interrupt input 0 timer 21 external trigger input uart1 receive data input output of ca pture/compare channel 2 p0.7 47 pu clkout_1 clock output table 2 pin definiti ons and functions (cont?d) symbol pin number type reset state function
SAL-XC886CLM general device information data sheet 9 v1.0, 2010-05 p1 i/o port 1 port 1 is an 8-bit bidi rectional general purpose i/o port. it can be used as alternate functions for the jtag, ccu6, uart, timer 0, timer 1, timer 2, timer 21, multican and ssc. p1.0 26 pu rxd_0 t2ex rxdc0_0 uart receive data input timer 2 external trigger input multican node 0 receiver input p1.1 27 pu exint3 t0_1 tdo_1 txd_0 txdc0_0 external interrupt input 3 timer 0 input jtag serial data output uart transmit data output/clock output multican node 0 transmitter output p1.2 28 pu sck_0 ssc clock input/output p1.3 29 pu mtsr_0 txdc1_3 ssc master transmit output/slave receive input multican node 1 transmitter output p1.4 30 pu mrst_0 exint0_1 rxdc1_3 ssc master receive input/ slave transmit output external interrupt input 0 multican node 1 receiver input p1.5 31 pu ccpos0_1 exint5 t1_1 exf2_0 rxdo_0 ccu6 hall input 0 external interrupt input 5 timer 1 input timer 2 external flag output uart transmit data output table 2 pin definiti ons and functions (cont?d) symbol pin number type reset state function
SAL-XC886CLM general device information data sheet 10 v1.0, 2010-05 p1.6 8 pu ccpos1_1 t12hr_0 exint6_0 rxdc0_2 t21_1 ccu6 hall input 1 ccu6 timer 12 hardware run input external interrupt input 6 multican node 0 receiver input timer 21 input p1.7 9 pu ccpos2_1 t13hr_0 t2_1 txdc0_2 ccu6 hall input 2 ccu6 timer 13 hardware run input timer 2 input multican node 0 transmitter output p1.5 and p1.6 can be us ed as a software chip select output for the ssc. table 2 pin definiti ons and functions (cont?d) symbol pin number type reset state function
SAL-XC886CLM general device information data sheet 11 v1.0, 2010-05 p2 i port 2 port 2 is an 8-bit gener al purpose input-only port. it can be used as alternate functions for the digital inputs of the jtag and ccu6. it is also used as the anal og inputs for the adc. p2.0 14 hi-z ccpos0_0 exint1_0 t12hr_2 tck_1 cc61_3 an0 ccu6 hall input 0 external interrupt input 1 ccu6 timer 12 hardware run input jtag clock input input of capture/compare channel 1 analog input 0 p2.1 15 hi-z ccpos1_0 exint2_0 t13hr_2 tdi_1 cc62_3 an1 ccu6 hall input 1 external interrupt input 2 ccu6 timer 13 hardware run input jtag serial data input input of capture/compare channel 2 analog input 1 p2.2 16 hi-z ccpos2_0 ctrap_1 cc60_3 an2 ccu6 hall input 2 ccu6 trap input input of capture/compare channel 0 analog input 2 p2.3 19 hi-z an3 analog input 3 p2.4 20 hi-z an4 analog input 4 p2.5 21 hi-z an5 analog input 5 p2.6 22 hi-z an6 analog input 6 p2.7 25 hi-z an7 analog input 7 table 2 pin definiti ons and functions (cont?d) symbol pin number type reset state function
SAL-XC886CLM general device information data sheet 12 v1.0, 2010-05 p3 i/o port 3 port 3 is an 8-bit bidi rectional general purpose i/o port. it can be used as alternate functions for ccu6, uart1, ti mer 21 and multican. p3.0 35 hi-z ccpos1_2 cc60_0 rxdo1_1 ccu6 hall input 1 input/output of capture/compare channel 0 uart1 transmit data output p3.1 36 hi-z ccpos0_2 cc61_2 cout60_0 txd1_1 ccu6 hall input 0 input/output of capture/compare channel 1 output of ca pture/compare channel 0 uart1 transmit data output/clock output p3.2 37 hi-z ccpos2_2 rxdc1_1 rxd1_1 cc61_0 ccu6 hall input 2 multican node 1 receiver input uart1 receive data input input/output of capture/compare channel 1 p3.3 38 hi-z cout61_0 txdc1_1 output of ca pture/compare channel 1 multican node 1 transmitter output p3.4 39 hi-z cc62_0 rxdc0_1 t2ex1_0 input/output of capture/compare channel 2 multican node 0 receiver input timer 21 external trigger input p3.5 40 hi-z cout62_0 exf21_0 txdc0_1 output of ca pture/compare channel 2 timer 21 external flag output multican node 0 transmitter output p3.6 33 pd ctrap_0 ccu6 trap input table 2 pin definiti ons and functions (cont?d) symbol pin number type reset state function
SAL-XC886CLM general device information data sheet 13 v1.0, 2010-05 p3.7 34 hi-z exint4 cout63_0 external interrupt input 4 output of ca pture/compare channel 3 table 2 pin definiti ons and functions (cont?d) symbol pin number type reset state function
SAL-XC886CLM general device information data sheet 14 v1.0, 2010-05 p4 i/o port 4 port 4 is an 8-bit bidi rectional general purpose i/o port. it can be used as alternate functions for ccu6, timer 0, ti mer 1, timer 21 and multican. p4.0 45 hi-z rxdc0_3 cc60_1 multican node 0 receiver input output of ca pture/compare channel 0 p4.1 46 hi-z txdc0_3 cout60_1 multican node 0 transmitter output output of ca pture/compare channel 0 p4.3 32 hi-z exf21_1 cout63_2 timer 21 external flag output output of ca pture/compare channel 3 table 2 pin definiti ons and functions (cont?d) symbol pin number type reset state function
SAL-XC886CLM general device information data sheet 15 v1.0, 2010-05 v ddp 7, 17, 43 ? ? i/o port supply (5.0 v) also used by evr and analog modules. all pins must be connected. v ssp 18, 42 ? ? i/o port ground all pins must be connected. v ddc 6 ? ? core supply monitor (2.5 v) v ssc 5 ? ? core supply ground v aref 24 ? ? adc reference voltage v agnd 23 ? ? adc reference ground xtal1 4 i hi-z external oscillator input (backup for on-chip osc, normally nc) xtal2 3 o hi-z external oscillator output (backup for on-chip osc, normally nc) tms 10 i pd test mode select reset 41 i pu reset input mbc 1) 44 i pu monitor & bootstra p loader control 1) an external pull-up device in the range of 4.7 k ? to 100 k ? . is required to enter user mode. alternatively mbc can be tied to high if alternate functions (for debugging) of the pin are not utilized. table 2 pin definiti ons and functions (cont?d) symbol pin number type reset state function
SAL-XC886CLM functional description data sheet 16 v1.0, 2010-05 3 functional description chapter 3 provides an overview of the sal -xc886 functional description. 3.1 processor architecture the sal-xc886 is based on a high-performance 8-bit centra l processing unit (cpu) that is compatible with th e standard 8051 processor. wh ile the standard 8051 processor is designed around a 12-clo ck machine cycle, the sal-xc8 86 cpu uses a 2-clock machine cycle. this allows fast access to rom or ram me mories without wait state. access to the flash memory, however, requ ires an additional wait state (one machine cycle). the instruction set co nsists of 45% one-byte, 41% two-byte and 14% three-byte instructions. the sal-xc886 cpu provides a range of debugging features, including basic stop/start, single-step execution, break point support and r ead/write access to the data memory, program memory and special function registers (sfrs). figure 5 shows the cpu functional blocks. figure 5 cpu block diagram register interface alu uart core sfrs 16-bit registers & memory interface opcode decoder state machine & power saving interrupt controller multiplier / divider opcode & immediate registers timer 0 / timer 1 internal data memory external sfrs external data memory program memory f cclk memory wait reset legacy external interrupts (ien0, ien1) external interrupts non-maskable interrupt
SAL-XC886CLM functional description data sheet 17 v1.0, 2010-05 3.2 memory organization the sal-xc886 cpu opera tes in the following five address spaces: ? 12 kbytes of boot rom program memory ? 256 bytes of intern al ram data memory ? 1.5 kbytes of xram memory (xram can be read/written as program memory or exter nal data memory) ? a 128-byte special function register area ? 24/32 kbytes of flash program memory figure 6 illustrates the memory address spaces of the 32-kbyte flash devices. for the 24-kbyte flash devices, the shaded banks are not available. figure 6 memory map of sal-xc886 flash device 0000 h 2000 h 4000 h 6000 h f000 h c000 h f600 h ffff h 7000 h 8000 h p-flash banks 2 and 3 2 x 4 kbytes boot rom 12 kbytes xram 1.5 kbytes f000 h f600 h 0000 h ffff h special function registers indirect address direct address 80 h ff h 00 h program space external data space internal data space internal ram xram 1.5 kbytes 7f h internal ram p-flash banks 0 and 1 2 x 4 kbytes d-flash bank 1 4 kbytes d-flash bank 0 4 kbytes a000 h b000 h d-flash bank 0 4 kbytes d-flash bank 1 4 kbytes 5000 h p-flash banks 4 and 5 2 x 4 kbytes 1) in 24-kbyte flash devices, the upper 2- kbyte of banks 4 and 5 are not available. 1)
SAL-XC886CLM functional description data sheet 18 v1.0, 2010-05 3.2.1 memory protection strategy the sal-xc886 memory prot ection strategy includes: ? read-out protection: the user is able to protect the contents in the flash memory from being read ? flash protection is enabled by progr amming a valid password (8-bit non-zero value) via bsl mode 6. ? flash program and erase protection. 3.2.1.1 flash memory protection as long as a valid password is available, all external access to th e device, including the flash, will be blocked. for additional security, the flash hardware protection can be enabled to implement a second layer of read-out protection, as we ll as to enable progra m and erase protection. flash hardware protection is available only for flash devices and comes in two modes: ? mode 0: only the p-flash is prot ected; the d-flas h is unprotected ? mode 1: both the p-flash and d-flash are protected the selection of each prot ection mode and the restrictio ns imposed are summarized in table 3 . table 3 flash protection modes flash protection without hardware protection with hardware protection hardware protection mode -01 activation program a valid password via bsl mode 6 selection bit 4 of password = 0 b it 4 of password = 1 msb of password = 0 bit 4 of password = 1 msb of password = 1 p-flash contents can be read by read instructions in any program memory read instructions in the p-flash read instructions in the p-flash or d- flash external access to p-flash not possible not possible not possible p-flash program and erase possible not possible not possible d-flash contents can be read by read instructions in any program memory read instructions in any program memory read instructions in the p-flash or d- flash
SAL-XC886CLM functional description data sheet 19 v1.0, 2010-05 bsl mode 6, which is used for enabling flash protection, can also be used for disabling flash protection. here, the programmed pa ssword must be provided by the user. a password match triggers an automatic er ase of the protected p-flash and d-flash contents, including the prog rammed password. the flash protection is then disabled upon the next reset. although no protection schem e can be considered infall ible, the sal-xc886 memory protection strategy provides a very high level of prot ection for a general purpose microcontroller. external access to d-flash not possible not possible not possible d-flash program possible possible not possible d-flash erase possible possible, on condition that bit dflashen in register misc_con is set to 1 prior to each erase operation not possible table 3 flash protection modes (cont?d) flash protection without hardware protection with hardware protection
SAL-XC886CLM functional description data sheet 20 v1.0, 2010-05 3.2.2 special function register the special function regi sters (sfrs) occupy direct inte rnal data memory space in the range 80 h to ff h . all registers, except the program co unter, reside in the sfr area. the sfrs include pointers and r egisters that provide an inte rface between t he cpu and the on-chip peripherals. as the 128-sfr range is less than th e total number of registers required, address extension mechanisms ar e required to increa se the number of addressable sfrs. t he address extension mechanisms include: ? mapping ?paging 3.2.2.1 address extension by mapping address extension is performed at the syst em level by mapping. the sfr area is extended into two portions: the standard (non-mapped) sf r area and the mapped sfr area. each portion supports the same address range 80 h to ff h , bringing the number of addressable sfrs to 256. t he extended address rang e is not directly controlled by the cpu instruction itself, but is derived from bi t rmap in the system control register syscon0 at address 8f h . to access sfrs in the mapped area, bit rmap in sfr syscon0 must be set. alternatively, the sfrs in the standar d area can be accessed by clearing bit rmap. the sfr area can be selected as shown in figure 7 . as long as bit rmap is set, the mapped sfr area can be accessed. this bit is not cleared automatically by hardware. thus , before standard/ma pped registers are accessed, bit rmap must be cleared/set, resp ectively, by software.
SAL-XC886CLM functional description data sheet 21 v1.0, 2010-05 figure 7 address extension by mapping module 1 sfrs ?... syscon0.rmap sfr data (to/from cpu) rw standard area (rmap = 0) ?... 80 h ff h 80 h ff h direct internal data memory address mapped area (rmap = 1) module 2 sfrs module n sfrs module (n+1) sfrs module (n+2) sfrs module m sfrs
SAL-XC886CLM functional description data sheet 22 v1.0, 2010-05 note: the rmap bit should be cleared/s et by anl or orl instructions. 3.2.2.2 address extension by paging address extension is further performed at the m odule level by paging. with the address extension by mapping, the sal-xc886 has a 256-sfr addre ss range. however, this is still less than the total number of sfrs needed by the on-chip perip herals. to meet this requirement, some peripherals have a built-i n local address extens ion mechanism for increasing the number of addressable sfrs. the extend ed address range is not directly controlled by the cpu instruction itself, but is derived from bit fi eld page in the module page register mod_page. hence, the bi t field page must be programmed before accessing the sfr of the target module. each module may contai n a different number of pages and a different number of sf rs per page, dependi ng on the specific requirement. besides setting the correct rmap bit value to select the sfr area, the user must also ensure that a valid page is select ed to target the desired sfr. a page inside the extended address range can be select ed as shown in figure 8 . syscon0 system control register 0 reset value: 04 h 76543210 0 imode 0 1 0 rmap r rwrrrrw field bits type description rmap 0rw interrupt node xintr0 enable 0 the access to the st andard sfr area is enabled 1 the access to the m apped sfr area is enabled 1 2r reserved returns 1 if re ad; should be written with 1. 0 [7:5], 3,1 r reserved returns 0 if re ad; should be written with 0.
SAL-XC886CLM functional description data sheet 23 v1.0, 2010-05 figure 8 address exte nsion by paging in order to access a register located in a pag e different from the actual o ne, the current page must be exited. this is done by reprog ramming the bit fi eld page in the page register. only then can th e desired access be performed. if an interrupt routine is initiated be tween the page register access and the module register access, and t he interrupt needs to access a regist er located in another page, the current page setting can be saved, the new one programm ed and the old page setting restored. this is possible with the storage fields stx (x = 0 - 3) for the save and restore action of the current page setting. by indicating which st orage bit field should be used in parallel with t he new page value, a sing le write operation can: ? save the contents of page in stx be fore overwriting with the new value (this is done in th e beginning of the interrupt routi ne to save the current page setting and program the new page number); or sfr0 sfr1 sfrx ?... page 0 sfr0 sfr1 sfry ?... page 1 ?... sfr0 sfr1 sfrz ?... page q mod_page.page sfr address (from cpu) sfr data (to/from cpu) rw module
SAL-XC886CLM functional description data sheet 24 v1.0, 2010-05 ? overwrite the contents of page with the co ntents of stx, ignori ng the value written to the bit positions of page (this is done at the end of the interrupt ro utine to restore the previous page setting before the interrupt occurred) figure 9 storage el ements for paging with this mechanism, a certain number of interrupt routines (or other routines) can perform page changes without reading and stor ing the previously used page information. the use of only write oper ations makes the system simp ler and faster. consequently, this mechanism significantly improves the performance of short interrupt routines. the sal-xc886 supports lo cal address extension for: ? parallel ports ? analog-to-digital converter (adc) ? capture/compare unit 6 (ccu6) ? system control registers page st0 st1 st2 st3 value update from cpu stnr
SAL-XC886CLM functional description data sheet 25 v1.0, 2010-05 the page register has th e following definition: mod_page page register for modu le mod reset value: 00 h 76543210 op stnr 0 page wwrrw field bits type description page [2:0] rw page bits when written, the value indicates the new page. when read, the value indica tes the currently active page. stnr [5:4] w storage number this number indicates whic h storage bit field is the target of the operation defined by bit field op. if op = 10 b , the contents of page are saved in stx before being overwritten with the new value. if op = 11 b , the contents of page are overwritten by the contents of stx. the value written to the bit positions of page is ignored. 00 st0 is selected. 01 st1 is selected. 10 st2 is selected. 11 st3 is selected.
SAL-XC886CLM functional description data sheet 26 v1.0, 2010-05 3.2.3 bit protection scheme the bit protection scheme prevents direct software wr iting of selected bi ts (i.e., protected bits) using the passwd re gister. when the bi t field mode is 11 b , writing 10011 b to the bit field pass opens access to writing of all protect ed bits, and writing 10101 b to the bit field pass closes access to writing of all prot ected bits. in both case s, the value of the bit field mode is not changed even if passwd regi ster is written with 98 h or a8 h . it can only be changed wh en bit field pass is written with 11000 b , for example, writing d0 h to passwd register disables th e bit protec tion scheme. note that access is opened fo r maximum 32 cclks if the ?clo se access? password is not written. if ?open access? password is wr itten again before the end of 32 cclk cycles, there will be a recount of 32 cclk cycles. the protecte d bits include the n- and k- divider bits, ndiv and kdiv; the watchdog timer enable bit, wdten; and the power- down and slow-down en able bits, pd and sd. op [7:6] w operation 0x manual page mode. th e value of stnr is ignored and page is directly written. 10 new page programming with automatic page saving. the value written to the bit positions of page is stored. in pa rallel, the previous contents of page are save d in the storage bit field stx indicated by stnr. 11 automatic restore page action. the value written to the bit positions page is ignored and instead, page is overwritten by the contents of the storage bit field stx indicated by stnr. 0 3r reserved returns 0 if re ad; should be written with 0. field bits type description
SAL-XC886CLM functional description data sheet 27 v1.0, 2010-05 3.2.3.1 password register passwd password register reset value: 07 h 76543210 pass protect _s mode wh rh rw field bits type description mode [1:0] rw bit protection scheme control bits 00 scheme disabled - di rect access to the protected bits is allowed. 11 scheme enabled - the bi t field pass has to be written with the passwor ds to open and close the access to prot ected bits. (default) others:scheme enabled. these two bits cannot be written directly. to change the value between 11 b and 00 b , the bit field pass must be written with 11000 b ; only then, will the mode[1:0] be registered. protect_s 2rh bit protection signal status bit this bit shows the stat us of the protection. 0 software is able to writ e to all protected bits. 1 software is unable to write to any protected bits. pass [7:3] wh password bits the bit protection scheme only reco gnizes three patterns. 11000 b enables writing of the bit field mode. 10011 b opens access to writing of all protected bits. 10101 b closes access to writin g of all protected bits
SAL-XC886CLM functional description data sheet 28 v1.0, 2010-05 3.2.4 sal-xc886 register overview the sfrs of the sal-xc886 are organized into groups according to their functional units. the contents (bits) of the sfrs are summarized in chapter 3.2.4.1 to chapter 3.2.4.14 . note: the addresses of th e bitaddressable sfrs ap pear in bold typeface. 3.2.4.1 cpu registers the cpu sfrs can be accessed in both the standard and ma pped memory areas (rmap = 0 or 1). table 4 cpu register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 0 or 1 81 h sp reset: 07 h stack pointer register bit field sp type rw 82 h dpl reset: 00 h data pointer register low bit field dpl7 dpl6 dpl5 dpl4 dpl3 dpl2 dpl1 dpl0 type rw rw rw rw rw rw rw rw 83 h dph reset: 00 h data pointer register high bit field dph7 dph6 dph5 dph4 dph3 dph2 dph1 dph0 type rw rw rw rw rw rw rw rw 87 h pcon reset: 00 h power control register bit field smod 0 gf1 gf0 0 idle type rw r rw rw r rw 88 h tcon reset: 00 h timer control register bit field tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 type rwh rw rwh rw rwh rw rwh rw 89 h tmod reset: 00 h timer mode register bit field gate 1 t1s t1m gate 0 t0s t0m type rw rw rw rw rw rw 8a h tl0 reset: 00 h timer 0 register low bit field val type rwh 8b h tl1 reset: 00 h timer 1 register low bit field val type rwh 8c h th0 reset: 00 h timer 0 register high bit field val type rwh 8d h th1 reset: 00 h timer 1 register high bit field val type rwh 98 h scon reset: 00 h serial channel control register bit field sm0 sm1 sm2 ren tb8 rb8 ti ri type rw rw rw rw rw rwh rwh rwh 99 h sbuf reset: 00 h serial data buffer register bit field val type rwh
SAL-XC886CLM functional description data sheet 29 v1.0, 2010-05 3.2.4.2 mdu registers the mdu sfrs can be accessed in the mapped memory area (rmap = 1). a2 h eo reset: 00 h extended operation register bit field 0 trap_ en 0 dpse l0 type r rw r rw a8 h ien0 reset: 00 h interrupt enable register 0 bit field ea 0 et2 es et1 ex1 et0 ex0 type rw r rwrwrwrwrwrw b8 h ip reset: 00 h interrupt priority register bit field 0 pt2 ps pt1 px1 pt0 px0 type r rwrwrwrwrwrw b9 h iph reset: 00 h interrupt priority high register bit field 0 pt2h psh pt1h px1h pt0h px0h type r rwrwrwrwrwrw d0 h psw reset: 00 h program status word register bit field cy ac f0 rs1 rs0 ov f1 p type rwh rwh rw rw rw rwh rw rh e0 h acc reset: 00 h accumulator register bit field acc7 acc6 acc5 acc4 acc3 acc2 acc1 acc0 type rw rw rw rw rw rw rw rw e8 h ien1 reset: 00 h interrupt enable register 1 bit field eccip 3 eccip 2 eccip 1 eccip 0 exm ex2 essc eadc type rw rw rw rw rw rw rw rw f0 h b reset: 00 h b register bit field b7 b6 b5 b4 b3 b2 b1 b0 type rw rw rw rw rw rw rw rw f8 h ip1 reset: 00 h interrupt priority 1 register bit field pccip 3 pccip 2 pccip 1 pccip 0 pxm px2 pssc padc type rw rw rw rw rw rw rw rw f9 h iph1 reset: 00 h interrupt priority 1 high register bit field pccip 3h pccip 2h pccip 1h pccip 0h pxmh px2h pssc h padc h type rw rw rw rw rw rw rw rw table 5 mdu register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 1 b0 h mdustat reset: 00 h mdu status register bit field 0 bsy ierr irdy type r rh rwh rwh b1 h mducon reset: 00 h mdu control register bit field ie ir rsel star t opcode type rw rw rw rwh rw b2 h md0 reset: 00 h mdu operand register 0 bit field data type rw b2 h mr0 reset: 00 h mdu result register 0 bit field data type rh table 4 cpu register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 30 v1.0, 2010-05 3.2.4.3 cordic registers the cordic sfrs can be accessed in the mapped memory area (rmap = 1). b3 h md1 reset: 00 h mdu operand register 1 bit field data type rw b3 h mr1 reset: 00 h mdu result register 1 bit field data type rh b4 h md2 reset: 00 h mdu operand register 2 bit field data type rw b4 h mr2 reset: 00 h mdu result register 2 bit field data type rh b5 h md3 reset: 00 h mdu operand register 3 bit field data type rw b5 h mr3 reset: 00 h mdu result register 3 bit field data type rh b6 h md4 reset: 00 h mdu operand register 4 bit field data type rw b6 h mr4 reset: 00 h mdu result register 4 bit field data type rh b7 h md5 reset: 00 h mdu operand register 5 bit field data type rw b7 h mr5 reset: 00 h mdu result register 5 bit field data type rh table 6 cordic register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 1 9a h cd_cordxl reset: 00 h cordic x data low byte bit field datal type rw 9b h cd_cordxh reset: 00 h cordic x data high byte bit field datah type rw 9c h cd_cordyl reset: 00 h cordic y data low byte bit field datal type rw 9d h cd_cordyh reset: 00 h cordic y data high byte bit field datah type rw 9e h cd_cordzl reset: 00 h cordic z data low byte bit field datal type rw table 5 mdu register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 31 v1.0, 2010-05 3.2.4.4 system control registers the system control sfrs can be accessed in the mapped memory area (rmap = 0). 9f h cd_cordzh reset: 00 h cordic z data high byte bit field datah type rw a0 h cd_statc reset: 00 h cordic status and data control register bit field keep z keep y keep x dmap int_e n eoc erro r bsy type rw rw rw rw rw rwh rh rh a1 h cd_con reset: 00 h cordic control register bit field mps x_usi gn st_m ode rotv ec mode st type rw rw rw rw rw rwh table 7 scu register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 0 or 1 8f h syscon0 reset: 04 h system control register 0 bit field 0 imod e 0 1 0 rmap type r rw r r r rw rmap = 0 bf h scu_page reset: 00 h page register bit field op stnr 0 page type w w r rw rmap = 0, page 0 b3 h modpisel reset: 00 h peripheral input select register bit field 0 urris h jtagt dis jtagt cks exint 2is exint 1is exint 0is urris type r rwrwrwrwrwrwrw b4 h ircon0 reset: 00 h interrupt request register 0 bit field 0 exint 6 exint 5 exint 4 exint 3 exint 2 exint 1 exint 0 type r rwh rwh rwh rwh rwh rwh rwh b5 h ircon1 reset: 00 h interrupt request register 1 bit field 0 cans rc2 cans rc1 adcs r1 adcs r0 rir tir eir type r rwh rwh rwh rwh rwh rwh rwh b6 h ircon2 reset: 00 h interrupt request register 2 bit field 0 cans rc3 0 cans rc0 type rrwhrrwh b7 h exicon0 reset: f0 h external interrupt control register 0 bit field exint3 exint2 exint1 exint0 type rw rw rw rw ba h exicon1 reset: 3f h external interrupt control register 1 bit field 0 exint6 exint5 exint4 typer rwrwrw bb h nmicon reset: 00 h nmi control register bit field 0 nmi ecc nmi vddp nmi vdd nmi ocds nmi flash nmi pll nmi wdt type r rwrwrwrwrwrwrw table 6 cordic register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 32 v1.0, 2010-05 bc h nmisr reset: 00 h nmi status register bit field 0 fnmi ecc fnmi vddp fnmi vdd fnmi ocds fnmi flash fnmi pll fnmi wdt type r rwh rwh rwh rwh rwh rwh rwh bd h bcon reset: 00 h baud rate control register bit field bgsel 0 brdis brpre r type rw r rw rw rw be h bg reset: 00 h baud rate timer/reload register bit field br_value type rwh e9 h fdcon reset: 00 h fractional divider control register bit field bgs syne n errs yn eofs yn brk ndov fdm fden type rw rw rwh rwh rwh rwh rw rw ea h fdstep reset: 00 h fractional divider reload register bit field step type rw eb h fdres reset: 00 h fractional divider result register bit field result type rh rmap = 0, page 1 b3 h id reset: uu h identity register bit field prodid verid type r r b4 h pmcon0 reset: 00 h power mode control register 0 bit field 0 wdt rst wkrs wk sel sd pd ws type r rwh rwh rw rw rwh rw b5 h pmcon1 reset: 00 h power mode control register 1 bit field 0 cdc_ dis can_ dis mdu_ dis t2_ dis ccu_ dis ssc_ dis adc_ dis type r rwrwrwrwrwrwrw b6 h osc_con reset: 08 h osc control register bit field 0 osc pd xpd osc ss ord res oscr type r rw rw rw rwh rh b7 h pll_con reset: 90 h pll control register bit field ndiv vco byp osc disc resl d lock type rw rw rw rwh rh ba h cmcon reset: 10 h clock control register bit field vco sel kdiv 0 fccf g clkrel type rw rw r rw rw bb h passwd reset: 07 h password register bit field pass prot ect_s mode type wh rh rw bc h feal reset: 00 h flash error address register low bit field eccerraddr type rh bd h feah reset: 00 h flash error address register high bit field eccerraddr type rh table 7 scu register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 33 v1.0, 2010-05 3.2.4.5 wdt registers the wdt sfrs can be accessed in the mapped memory area (rmap = 1). be h cocon reset: 00 h clock output control register bit field 0 tlen cout s corel type r rw rw rw e9 h misc_con reset: 00 h miscellaneous control register bit field 0 dflas hen type r rwh rmap = 0, page 3 b3 h xaddrh reset: f0 h on-chip xram address higher order bit field addrh type rw b4 h ircon3 reset: 00 h interrupt request register 3 bit field 0 cans rc5 ccu6 sr1 0 cans rc4 ccu6 sr0 type r rwh rwh r rwh rwh b5 h ircon4 reset: 00 h interrupt request register 4 bit field 0 cans rc7 ccu6 sr3 0 cans rc6 ccu6 sr2 type r rwh rwh r rwh rwh b7 h modpisel1 reset: 00 h peripheral input select register 1 bit field exint 6is 0 ur1ris t21ex is jtagt dis1 jtagt cks1 type rw r rw rw rw rw ba h modpisel2 reset: 00 h peripheral input select register 2 bit field 0 t21is t2is t1is t0is type r rw rw rw rw bb h pmcon2 reset: 00 h power mode control register 2 bit field 0 uart 1_dis t21_d is type r rw rw bd h modsusp reset: 01 h module suspend control register bit field 0 t21su sp t2sus p t13su sp t12su sp wdts usp type r rw rw rw rw rw table 8 wdt register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 1 bb h wdtcon reset: 00 h watchdog timer control register bit field 0 winb en wdtp r 0 wdte n wdtr s wdti n type r rw rh r rw rwh rw bc h wdtrel reset: 00 h watchdog timer reload register bit field wdtrel type rw bd h wdtwinb reset: 00 h watchdog window-boundary count register bit field wdtwinb type rw table 7 scu register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 34 v1.0, 2010-05 3.2.4.6 port registers the port sfrs can be accessed in the standard memory area (rmap = 0). be h wdtl reset: 00 h watchdog timer register low bit field wdt type rh bf h wdth reset: 00 h watchdog timer register high bit field wdt type rh table 9 port register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 0 b2 h port_page reset: 00 h page register bit field op stnr 0 page type w w r rw rmap = 0, page 0 80 h p0_data reset: 00 h p0 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 86 h p0_dir reset: 00 h p0 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 90 h p1_data reset: 00 h p1 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 91 h p1_dir reset: 00 h p1 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 92 h p5_data reset: 00 h p5 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 93 h p5_dir reset: 00 h p5 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a0 h p2_data reset: 00 h p2 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a1 h p2_dir reset: 00 h p2 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_data reset: 00 h p3 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b1 h p3_dir reset: 00 h p3 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c8 h p4_data reset: 00 h p4 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c9 h p4_dir reset: 00 h p4 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw table 8 wdt register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 35 v1.0, 2010-05 rmap = 0, page 1 80 h p0_pudsel reset: ff h p0 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 86 h p0_puden reset: c4 h p0 pull-up/pull- down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 90 h p1_pudsel reset: ff h p1 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 91 h p1_puden reset: ff h p1 pull-up/pull- down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 92 h p5_pudsel reset: ff h p5 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 93 h p5_puden reset: ff h p5 pull-up/pull- down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a0 h p2_pudsel reset: ff h p2 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a1 h p2_puden reset: 00 h p2 pull-up/pull- down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_pudsel reset: bf h p3 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b1 h p3_puden reset: 40 h p3 pull-up/pull- down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c8 h p4_pudsel reset: ff h p4 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c9 h p4_puden reset: 04 h p4 pull-up/pull- down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw rmap = 0, page 2 80 h p0_altsel0 reset: 00 h p0 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 86 h p0_altsel1 reset: 00 h p0 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 90 h p1_altsel0 reset: 00 h p1 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 91 h p1_altsel1 reset: 00 h p1 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 92 h p5_altsel0 reset: 00 h p5 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw table 9 port register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 36 v1.0, 2010-05 3.2.4.7 adc registers the adc sfrs can be accessed in t he standard memory area (rmap = 0). 93 h p5_altsel1 reset: 00 h p5 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_altsel0 reset: 00 h p3 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b1 h p3_altsel1 reset: 00 h p3 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c8 h p4_altsel0 reset: 00 h p4 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c9 h p4_altsel1 reset: 00 h p4 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw rmap = 0, page 3 80 h p0_od reset: 00 h p0 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 90 h p1_od reset: 00 h p1 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 92 h p5_od reset: 00 h p5 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_od reset: 00 h p3 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c8 h p4_od reset: 00 h p4 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw table 10 adc register overview addrregister name bit 76543210 rmap = 0 d1 h adc_page reset: 00 h page register bit field op stnr 0 page type w w r rw rmap = 0, page 0 ca h adc_globctr reset: 30 h global control register bit field anon dw ctc 0 type rw rw rw r cb h adc_globstr reset: 00 h global status register bit field 0 chnr 0 samp le busy type r rh r rh rh cc h adc_prar reset: 00 h priority and arbitration register bit field asen 1 asen 0 0 arbm csm1 prio1 csm0 prio0 type rw rw r rw rw rw rw rw table 9 port register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 37 v1.0, 2010-05 cd h adc_lcbr reset: b7 h limit check boundary register bit field bound1 bound0 type rw rw ce h adc_inpcr0 reset: 00 h input class 0 register bit field stc type rw cf h adc_etrcr reset: 00 h external trigger control register bit field syne n1 syne n0 etrsel1 etrsel0 type rw rw rw rw rmap = 0, page 1 ca h adc_chctr0 reset: 00 h channel control register 0 bit field 0 lcc 0 resrsel type r rw r rw cb h adc_chctr1 reset: 00 h channel control register 1 bit field 0 lcc 0 resrsel type r rw r rw cc h adc_chctr2 reset: 00 h channel control register 2 bit field 0 lcc 0 resrsel type r rw r rw cd h adc_chctr3 reset: 00 h channel control register 3 bit field 0 lcc 0 resrsel type r rw r rw ce h adc_chctr4 reset: 00 h channel control register 4 bit field 0 lcc 0 resrsel type r rw r rw cf h adc_chctr5 reset: 00 h channel control register 5 bit field 0 lcc 0 resrsel type r rw r rw d2 h adc_chctr6 reset: 00 h channel control register 6 bit field 0 lcc 0 resrsel type r rw r rw d3 h adc_chctr7 reset: 00 h channel control register 7 bit field 0 lcc 0 resrsel type r rw r rw rmap = 0, page 2 ca h adc_resr0l reset: 00 h result register 0 low bit field result 0 vf drc chnr type rh r rh rh rh cb h adc_resr0h reset: 00 h result register 0 high bit field result type rh cc h adc_resr1l reset: 00 h result register 1 low bit field result 0 vf drc chnr type rh r rh rh rh cd h adc_resr1h reset: 00 h result register 1 high bit field result type rh ce h adc_resr2l reset: 00 h result register 2 low bit field result 0 vf drc chnr type rh r rh rh rh cf h adc_resr2h reset: 00 h result register 2 high bit field result type rh d2 h adc_resr3l reset: 00 h result register 3 low bit field result 0 vf drc chnr type rh r rh rh rh table 10 adc register overview (cont?d) addrregister name bit 76543210
SAL-XC886CLM functional description data sheet 38 v1.0, 2010-05 d3 h adc_resr3h reset: 00 h result register 3 high bit field result type rh rmap = 0, page 3 ca h adc_resra0l reset: 00 h result register 0, view a low bit field result vf drc chnr type rh rh rh rh cb h adc_resra0h reset: 00 h result register 0, view a high bit field result type rh cc h adc_resra1l reset: 00 h result register 1, view a low bit field result vf drc chnr type rh rh rh rh cd h adc_resra1h reset: 00 h result register 1, view a high bit field result type rh ce h adc_resra2l reset: 00 h result register 2, view a low bit field result vf drc chnr type rh rh rh rh cf h adc_resra2h reset: 00 h result register 2, view a high bit field result type rh d2 h adc_resra3l reset: 00 h result register 3, view a low bit field result vf drc chnr type rh rh rh rh d3 h adc_resra3h reset: 00 h result register 3, view a high bit field result type rh rmap = 0, page 4 ca h adc_rcr0 reset: 00 h result control register 0 bit field vfct r wfr 0 ien 0 drct r type rw rw r rw r rw cb h adc_rcr1 reset: 00 h result control register 1 bit field vfct r wfr 0 ien 0 drct r type rw rw r rw r rw cc h adc_rcr2 reset: 00 h result control register 2 bit field vfct r wfr 0 ien 0 drct r type rw rw r rw r rw cd h adc_rcr3 reset: 00 h result control register 3 bit field vfct r wfr 0 ien 0 drct r type rw rw r rw r rw ce h adc_vfcr reset: 00 h valid flag clear register bit field 0 vfc3 vfc2 vfc1 vfc0 type r w w w w rmap = 0, page 5 ca h adc_chinfr reset: 00 h channel interrupt flag register bit field chinf 7 chinf 6 chinf 5 chinf 4 chinf 3 chinf 2 chinf 1 chinf 0 type rh rh rh rh rh rh rh rh cb h adc_chincr reset: 00 h channel interrupt clear register bit field chinc 7 chinc 6 chinc 5 chinc 4 chinc 3 chinc 2 chinc 1 chinc 0 typewwwwwwww table 10 adc register overview (cont?d) addrregister name bit 76543210
SAL-XC886CLM functional description data sheet 39 v1.0, 2010-05 cc h adc_chinsr reset: 00 h channel interrupt set register bit field chins 7 chins 6 chins 5 chins 4 chins 3 chins 2 chins 1 chins 0 typewwwwwwww cd h adc_chinpr reset: 00 h channel interrupt node pointer register bit field chinp 7 chinp 6 chinp 5 chinp 4 chinp 3 chinp 2 chinp 1 chinp 0 type rw rw rw rw rw rw rw rw ce h adc_evinfr reset: 00 h event interrupt flag register bit field evinf 7 evinf 6 evinf 5 evinf 4 0 evinf 1 evinf 0 type rh rh rh rh r rh rh cf h adc_evincr reset: 00 h event interrupt clear flag register bit field evinc 7 evinc 6 evinc 5 evinc 4 0 evinc 1 evinc 0 typewwww r ww d2 h adc_evinsr reset: 00 h event interrupt set flag register bit field evins 7 evins 6 evins 5 evins 4 0 evins 1 evins 0 typewwww r ww d3 h adc_evinpr reset: 00 h event interrupt node pointer register bit field evinp 7 evinp 6 evinp 5 evinp 4 0 evinp 1 evinp 0 type rw rw rw rw r rw rw rmap = 0, page 6 ca h adc_crcr1 reset: 00 h conversion request control register 1 bit field ch7 ch6 ch5 ch4 0 type rwh rwh rwh rwh r cb h adc_crpr1 reset: 00 h conversion request pending register 1 bit field chp7 chp6 chp5 chp4 0 type rwh rwh rwh rwh r cc h adc_crmr1 reset: 00 h conversion request mode register 1 bit field rsv ldev clrp nd scan ensi entr 0 engt type r w w rw rw rw r rw cd h adc_qmr0 reset: 00 h queue mode register 0 bit field cev trev flus h clrv 0 entr 0 engt typewwww rrwrrw ce h adc_qsr0 reset: 20 h queue status register 0 bit field rsv 0 empt y ev 0 fill type r r rh rh r rh cf h adc_q0r0 reset: 00 h queue 0 register 0 bit field extr ensi rf v 0 reqchnr type rh rh rh rh r rh d2 h adc_qbur0 reset: 00 h queue backup register 0 bit field extr ensi rf v 0 reqchnr type rh rh rh rh r rh d2 h adc_qinr0 reset: 00 h queue input register 0 bit field extr ensi rf 0 reqchnr typewww r w table 10 adc register overview (cont?d) addrregister name bit 76543210
SAL-XC886CLM functional description data sheet 40 v1.0, 2010-05 3.2.4.8 timer 2 registers the timer 2 sfrs can be accessed in the standard memory area (rmap = 0). 3.2.4.9 timer 21 registers the timer 21 sfrs can be accessed in the mapped memory area (rmap = 1). table 11 t2 register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 0 c0 h t2_t2con reset: 00 h timer 2 control register bit field tf2 exf2 0 exen 2 tr2 c/t2 cp/ rl2 type rwh rwh r rw rwh rw rw c1 h t2_t2mod reset: 00 h timer 2 mode register bit field t2re gs t2rh en edge sel pren t2pre dcen type rw rw rw rw rw rw rw rw c2 h t2_rc2l reset: 00 h timer 2 reload/capture register low bit field rc2 type rwh c3 h t2_rc2h reset: 00 h timer 2 reload/capture register high bit field rc2 type rwh c4 h t2_t2l reset: 00 h timer 2 register low bit field thl2 type rwh c5 h t2_t2h reset: 00 h timer 2 register high bit field thl2 type rwh table 12 t21 register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 1 c0 h t21_t2con reset: 00 h timer 2 control register bit field tf2 exf2 0 exen 2 tr2 c/t2 cp/ rl2 type rwh rwh r rw rwh rw rw c1 h t21_t2mod reset: 00 h timer 2 mode register bit field t2re gs t2rh en edge sel pren t2pre dcen type rw rw rw rw rw rw rw rw c2 h t21_rc2l reset: 00 h timer 2 reload/capture register low bit field rc2 type rwh c3 h t21_rc2h reset: 00 h timer 2 reload/capture register high bit field rc2 type rwh c4 h t21_t2l reset: 00 h timer 2 register low bit field thl2 type rwh
SAL-XC886CLM functional description data sheet 41 v1.0, 2010-05 3.2.4.10 ccu6 registers the ccu6 sfrs can be accessed in the standard memory area (rmap = 0). c5 h t21_t2h reset: 00 h timer 2 register high bit field thl2 type rwh table 13 ccu6 register overview addrregister name bit 76543210 rmap = 0 a3 h ccu6_page reset: 00 h page register bit field op stnr 0 page type w w r rw rmap = 0, page 0 9a h ccu6_cc63srl reset: 00 h capture/compare shadow register for channel cc63 low bit field cc63sl type rw 9b h ccu6_cc63srh reset: 00 h capture/compare shadow register for channel cc63 high bit field cc63sh type rw 9c h ccu6_tctr4l reset: 00 h timer control register 4 low bit field t12 std t12 str 0 dt res t12 res t12r s t12r r type ww r wwww 9d h ccu6_tctr4h reset: 00 h timer control r egister 4 high bit field t13 std t13 str 0 t13 res t13r s t13r r type ww r www 9e h ccu6_mcmoutsl reset: 00 h multi-channel mode output shadow register low bit field strm cm 0 mcmps type w r rw 9f h ccu6_mcmoutsh reset: 00 h multi-channel mode output shadow register high bit field strh p 0 curhs exphs type w r rw rw a4 h ccu6_isrl reset: 00 h capture/compare interrupt status reset register low bit field rt12 pm rt12 om rcc6 2f rcc6 2r rcc6 1f rcc6 1r rcc6 0f rcc6 0r type wwwwwwww a5 h ccu6_isrh reset: 00 h capture/compare interrupt status reset register high bit field rstr ridle rwh e rche 0 rtrp f rt13 pm rt13 cm type wwww r www a6 h ccu6_cmpmodifl reset: 00 h compare state modification register low bit field 0 mcc6 3s 0 mcc6 2s mcc6 1s mcc6 0s type r w r www a7 h ccu6_cmpmodifh reset: 00 h compare state modification register high bit field 0 mcc6 3r 0 mcc6 2r mcc6 1r mcc6 0r type r w r www table 12 t21 register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 42 v1.0, 2010-05 fa h ccu6_cc60srl reset: 00 h capture/compare shadow register for channel cc60 low bit field cc60sl type rwh fb h ccu6_cc60srh reset: 00 h capture/compare shadow register for channel cc60 high bit field cc60sh type rwh fc h ccu6_cc61srl reset: 00 h capture/compare shadow register for channel cc61 low bit field cc61sl type rwh fd h ccu6_cc61srh reset: 00 h capture/compare shadow register for channel cc61 high bit field cc61sh type rwh fe h ccu6_cc62srl reset: 00 h capture/compare shadow register for channel cc62 low bit field cc62sl type rwh ff h ccu6_cc62srh reset: 00 h capture/compare shadow register for channel cc62 high bit field cc62sh type rwh rmap = 0, page 1 9a h ccu6_cc63rl reset: 00 h capture/compare register for channel cc63 low bit field cc63vl type rh 9b h ccu6_cc63rh reset: 00 h capture/compare register for channel cc63 high bit field cc63vh type rh 9c h ccu6_t12prl reset: 00 h timer t12 period register low bit field t12pvl type rwh 9d h ccu6_t12prh reset: 00 h timer t12 period register high bit field t12pvh type rwh 9e h ccu6_t13prl reset: 00 h timer t13 period register low bit field t13pvl type rwh 9f h ccu6_t13prh reset: 00 h timer t13 period register high bit field t13pvh type rwh a4 h ccu6_t12dtcl reset: 00 h dead-time control register for timer t12 low bit field dtm type rw a5 h ccu6_t12dtch reset: 00 h dead-time control register for timer t12 high bit field 0 dtr2 dtr1 dtr0 0 dte2 dte1 dte0 type r rhrhrh r rwrwrw a6 h ccu6_tctr0l reset: 00 h timer control register 0 low bit field ctm cdir ste1 2 t12r t12 pre t12clk type rw rh rh rh rw rw a7 h ccu6_tctr0h reset: 00 h timer control r egister 0 high bit field 0 ste1 3 t13r t13 pre t13clk type r rh rh rw rw fa h ccu6_cc60rl reset: 00 h capture/compare register for channel cc60 low bit field cc60vl type rh table 13 ccu6 register overview (cont?d) addrregister name bit 76543210
SAL-XC886CLM functional description data sheet 43 v1.0, 2010-05 fb h ccu6_cc60rh reset: 00 h capture/compare register for channel cc60 high bit field cc60vh type rh fc h ccu6_cc61rl reset: 00 h capture/compare register for channel cc61 low bit field cc61vl type rh fd h ccu6_cc61rh reset: 00 h capture/compare register for channel cc61 high bit field cc61vh type rh fe h ccu6_cc62rl reset: 00 h capture/compare register for channel cc62 low bit field cc62vl type rh ff h ccu6_cc62rh reset: 00 h capture/compare register for channel cc62 high bit field cc62vh type rh rmap = 0, page 2 9a h ccu6_t12msell reset: 00 h t12 capture/compare mode select register low bit field msel61 msel60 type rw rw 9b h ccu6_t12mselh reset: 00 h t12 capture/compare mode select register high bit field dbyp hsync msel62 type rw rw rw 9c h ccu6_ienl reset: 00 h capture/compare interrupt enable register low bit field ent1 2 pm ent1 2 om encc 62f encc 62r encc 61f encc 61r encc 60f encc 60r type rw rw rw rw rw rw rw rw 9d h ccu6_ienh reset: 00 h capture/compare interrupt enable register high bit field en str en idle en whe en che 0 en trpf ent1 3pm ent1 3cm type rw rw rw rw r rw rw rw 9e h ccu6_inpl reset: 40 h capture/compare interrupt node pointer register low bit field inpche inpcc62 inpcc61 inpcc60 type rw rw rw rw 9f h ccu6_inph reset: 39 h capture/compare interrupt node pointer register high bit field 0 inpt13 inpt12 inperr type r rw rw rw a4 h ccu6_issl reset: 00 h capture/compare interrupt status set register low bit field st12 pm st12 om scc6 2f scc6 2r scc6 1f scc6 1r scc6 0f scc6 0r type wwwwwwww a5 h ccu6_issh reset: 00 h capture/compare interrupt status set register high bit field sstr sidle swhe sche swh c strp f st13 pm st13 cm type wwwwwwww a6 h ccu6_pslr reset: 00 h passive state level register bit field psl63 0 psl type rwh r rwh a7 h ccu6_mcmctr reset: 00 h multi-channel mode control register bit field 0 swsyn 0 swsel type r rw r rw fa h ccu6_tctr2l reset: 00 h timer control register 2 low bit field 0 t13ted t13tec t13 ssc t12 ssc type r rw rw rw rw table 13 ccu6 register overview (cont?d) addrregister name bit 76543210
SAL-XC886CLM functional description data sheet 44 v1.0, 2010-05 fb h ccu6_tctr2h reset: 00 h timer control r egister 2 high bit field 0 t13rsel t12rsel type r rw rw fc h ccu6_modctrl reset: 00 h modulation contro l register low bit field mcm en 0 t12moden type rw r rw fd h ccu6_modctrh reset: 00 h modulation contro l register high bit field ect1 3o 0 t13moden type rw r rw fe h ccu6_trpctrl reset: 00 h trap control register low bit field 0 trpm 2 trpm 1 trpm 0 type r rw rw rw ff h ccu6_trpctrh reset: 00 h trap control register high bit field trpp en trpe n13 trpen type rw rw rw rmap = 0, page 3 9a h ccu6_mcmoutl reset: 00 h multi-channel mode output register low bit field 0 r mcmp type r rh rh 9b h ccu6_mcmouth reset: 00 h multi-channel mode output register high bit field 0 curh exph type r rh rh 9c h ccu6_isl reset: 00 h capture/compare interrupt status register low bit field t12 pm t12 om icc62 f icc62 r icc61 f icc61 r icc60 f icc60 r type rh rh rh rh rh rh rh rh 9d h ccu6_ish reset: 00 h capture/compare interrupt status register high bit field str idle whe che trps trpf t13 pm t13 cm type rh rh rh rh rh rh rh rh 9e h ccu6_pisel0l reset: 00 h port input select register 0 low bit field istrp iscc62 iscc61 iscc60 type rw rw rw rw 9f h ccu6_pisel0h reset: 00 h port input select register 0 high bit field ist12hr ispos2 ispos1 ispos0 type rw rw rw rw a4 h ccu6_pisel2 reset: 00 h port input select register 2 bit field 0 ist13hr type r rw fa h ccu6_t12l reset: 00 h timer t12 counter register low bit field t12cvl type rwh fb h ccu6_t12h reset: 00 h timer t12 counter register high bit field t12cvh type rwh fc h ccu6_t13l reset: 00 h timer t13 counter register low bit field t13cvl type rwh fd h ccu6_t13h reset: 00 h timer t13 counter register high bit field t13cvh type rwh table 13 ccu6 register overview (cont?d) addrregister name bit 76543210
SAL-XC886CLM functional description data sheet 45 v1.0, 2010-05 3.2.4.11 uart1 registers the uart1 sfrs can be accessed in the mapped memory area (rmap = 1). fe h ccu6_cmpstatl reset: 00 h compare state register low bit field 0 cc63 st cc pos2 cc pos1 cc pos0 cc62 st cc61 st cc60 st type r rhrhrhrhrhrhrh ff h ccu6_cmpstath reset: 00 h compare state register high bit field t13im cout 63ps cout 62ps cc62 ps cout 61ps cc61 ps cout 60ps cc60 ps type rwh rwh rwh rwh rwh rwh rwh rwh table 14 uart1 register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 1 c8 h scon reset: 00 h serial channel control register bit field sm0 sm1 sm2 ren tb8 rb8 ti ri type rw rw rw rw rw rwh rwh rwh c9 h sbuf reset: 00 h serial data buffer register bit field val type rwh ca h bcon reset: 00 h baud rate control register bit field 0 brpre r type r rw rw cb h bg reset: 00 h baud rate timer/reload register bit field br_value type rwh cc h fdcon reset: 00 h fractional divider control register bit field 0 ndov fdm fden type r rwh rw rw cd h fdstep reset: 00 h fractional divider reload register bit field step type rw ce h fdres reset: 00 h fractional divider result register bit field result type rh table 13 ccu6 register overview (cont?d) addrregister name bit 76543210
SAL-XC886CLM functional description data sheet 46 v1.0, 2010-05 3.2.4.12 ssc registers the ssc sfrs can be accessed in the standard memory area (rmap = 0). 3.2.4.13 multican registers the multican sfrs can be accessed in the standard memory area (rmap = 0). table 15 ssc register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 0 a9 h ssc_pisel reset: 00 h port input select register bit field 0 cis sis mis type r rw rw rw aa h ssc_conl reset: 00 h control register low programming mode bit field lb po ph hb bm type rw rw rw rw rw aa h ssc_conl reset: 00 h control register low operating mode bit field 0 bc type r rh ab h ssc_conh reset: 00 h control register high programming mode bit field en ms 0 aren ben pen ren ten type rw rw r rw rw rw rw rw ab h ssc_conh reset: 00 h control register high operating mode bit field en ms 0 bsy be pe re te type rw rw r rh rwh rwh rwh rwh ac h ssc_tbl reset: 00 h transmitter buffer register low bit field tb_value type rw ad h ssc_rbl reset: 00 h receiver buffer register low bit field rb_value type rh ae h ssc_brl reset: 00 h baud rate timer reload register low bit field br_value type rw af h ssc_brh reset: 00 h baud rate timer reload register high bit field br_value type rw table 16 can register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 0 d8 h adcon reset: 00 h can address/da ta control register bit field v3 v2 v1 v0 auad bsy rwen type rw rw rw rw rw rh rw d9 h adl reset: 00 h can address register low bit field ca9 ca8 ca7 ca6 ca5 ca4 ca3 ca2 type rwh rwh rwh rwh rwh rwh rwh rwh da h adh reset: 00 h can address register high bit field 0 ca13 ca12 ca11 ca10 type r rwh rwh rwh rwh
SAL-XC886CLM functional description data sheet 47 v1.0, 2010-05 3.2.4.14 ocds registers the ocds sfrs can be accessed in the mapped memory area (rmap = 1). db h data0 reset: 00 h can data register 0 bit field cd type rwh dc h data1 reset: 00 h can data register 1 bit field cd type rwh dd h data2 reset: 00 h can data register 2 bit field cd type rwh de h data3 reset: 00 h can data register 3 bit field cd type rwh table 17 ocds register overview addr register name bit 7 6 5 4 3 2 1 0 rmap = 1 e9 h mmcr2 reset: 1u h monitor mode control 2 register bit field stmo de exbc dsus p mbco n altdi mmep mmod e jena type rw rw rw rwh rw rwh rh rh f1 h mmcr reset: 00 h monitor mode control register bit field mexit _p mexit 0 mste p mram s_p mram s trf rrf type w rwh r rw w rwh rh rh f2 h mmsr reset: 00 h monitor mode status register bit field mbca m mbcin exbf swbf hwb3 f hwb2 f hwb1 f hwb0 f type rw rwh rwh rwh rwh rwh rwh rwh f3 h mmbpcr reset: 00 h breakpoints control register bit field swbc hwb3c hwb2c hwb1 c hwb0c type rw rw rw rw rw f4 h mmicr reset: 00 h monitor mode interrupt control register bit field dvec t dret r comr st msts el mmui e_p mmui e rrie_ p rrie type rwh rwh rwh rh w rw w rw f5 h mmdr reset: 00 h monitor mode data transfer register receive bit field mmrr type rh f6 h hwbpsr reset: 00 h hardware breakpoints select register bit field 0 bpsel _p bpsel type r w rw f7 h hwbpdr reset: 00 h hardware breakpoints data register bit field hwbpxx type rw eb h mmwr1 reset: 00 h monitor work register 1 bit field mmwr1 type rw table 16 can register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 48 v1.0, 2010-05 ec h mmwr2 reset: 00 h monitor work register 2 bit field mmwr2 type rw table 17 ocds register overview (cont?d) addr register name bit 7 6 5 4 3 2 1 0
SAL-XC886CLM functional description data sheet 49 v1.0, 2010-05 3.3 flash memory the flash memory provides an embedded user-programm able non-volatile memory, allowing fast and reliable storage of user code and data. it is operated from a single 2.5 v supply from the embedded voltage regu lator (evr) and does not require additional programming or erasing volta ge. the sectorization of t he flash memory allows each sector to be er ased independently. features ? in-system programming (isp) via uart ? in-application programming (iap) ? error correction code (ecc) for dynamic correction of single-bit errors ? background program a nd erase operations for cpu load minimization ? support for aborti ng erase operation ? minimum program width 1) of 32-byte for d-flash and 64-byte for p-flash ? 1-sector minimum erase width ? 1-byte read access ? flash is deliver ed in erased stat e (read all zeros) ? operating supply vo ltage: 2.5 v 7.5 % ? read access time: 3 t cclk = 150 ns 2) ? program time: 248256 / f sys = 3.1 ms 3) ? erase time: 9807360 / f sys = 123 ms 3) 1) p-flash: 64-byte wordline can only be programmed once, i.e., one gate disturb allowed. d-flash: 32-byte wordline can be programmed twice, i.e., two gate disturbs allowed. 2) values shown here are typical values. f sys =80mhz7.5% ( f cclk = 20 mhz 7.5 %) is the maximum frequency range for flash read access. 3) values shown here are typical values. f sys = 80 mhz 7.5% is the only frequency range for flash programming and erasing. f sysmin is used for obtaining the worst case timing.
SAL-XC886CLM functional description data sheet 50 v1.0, 2010-05 table 18 shows the flash data ret ention and endurance targets. 3.3.1 flash bank sectorization the sal-xc886 product family offers flash devices with either 24 kbytes or 32 kbytes of embedded flash me mory. each flash device consis ts of program flash (p-flash) and data flash (d-flash ) bank(s) with different sectorization shown in figure 10 . both types can be used for code and data storage. the label ?data? neither implies that the d-flash is mapped to the data memory regi on, nor that it can only be used for data storage. it is used to di stinguish the different fl ash bank sectorizations. the 32-kbyte flash device cons ists of 6 p-flash and 2 d- flash banks, while the 24- kbyte flash device consists of also of 6 p-flash banks but with the upper 2 banks only 2 kbytes each, and only 1 d-flash bank. the p-flash banks are always grouped in pairs. as such, the p-flash banks are also sometimes referred to as p-flash bank pair. each sect or in a p-flash bank is grouped with the corresponding sector from the other bank within a bank pair to form a p-flash bank pair sector. table 18 flash data retention and en durance (operating conditions apply) retention endurance 1) 1) one cycle refers to the programming of all wordlines in a sector and erasing of sector. the flash endurance data specified in table 18 is valid only if the following conditions are fulfilled: - the maximum number of erase cycles per flash sector must not exceed 100,000 cycles. - the maximum number of erase cycles per flash bank must not exceed 300,000 cycles. - the maximum number of program cycles per flash bank must not exceed 2,500,000 cycles. size remarks t a = -40 to 125 c t a = 125 to 150 c program flash 20 years 1,000 cycles up to 32 kbytes 2) 2) if no flash is used for data, the program flash size can be up to the maximum flash size available in the device variant. having more data flash will mean less flash is available for program flash. for 32-kbyte variant 20 years 1,000 c ycles up to 24 kbytes 2) for 24-kbyte variant data flash 20 years 1,000 cycles 3) 3) for t a = 125 to 150 c, refers to programming of second 8 bytes (bytes 8 to 15) per wl. 4 kbytes 1 kbyte 5 years 10,000 cycles 3) 1 kbyte 256 bytes 2 years 70,000 cycles 3) 512 bytes 128 bytes 2 years 100,000 cycles 3) 128 bytes 32 bytes
SAL-XC886CLM functional description data sheet 51 v1.0, 2010-05 figure 10 flash bank sectorization the internal structure of each flash bank represents a sect or architecture for flexible erase capability. the minimum erase width is always a comple te sector, and sectors can be erased separately or in parallel. contrary to st andard eproms, erased flash memory cells contain 0s. the d-flash bank is divided into more physical sectors fo r extended erasing and reprogramming capability; even numbers for each sector size are provided to allow greater flexibility and the abilit y to adapt to a wide range of application requirements. 3.3.2 parallel read access of p-flash to enhance system performance, the p-flash ba nks are configured for parallel read to allow two bytes of linear c ode to be read in 4 x cclk cycles, compared to 6 x cclk cycles if serial read is perfo rmed. this is achieved by readi ng two bytes in parallel from a p-flash bank pair within the 3 x cclk cycles access time a nd storing them in a cache. subsequent read from the cache by the cpu does not require a wa it state and can be completed within 1 x cclk cycle. the result is the average instruction fetch time from the p-flash banks is reduced and thus, the mips (m ega instruction pe r second) of the system is increased. however, if the parallel read feature is not desir ed due to certain timing constraints, it can be disabled by calling the pa rallel read disable subroutine. sector 9: 128-byte sector 5: 256-byte sector 3: 512-byte sector 1: 1-kbyte sector 0: 1-kbyte sector 7: 128-byte sector 8: 128-byte sector 6: 128-byte sector 4: 256-byte sector 2: 512-byte sector 0: 3.75-kbyte p-flash d-flash sector 2: 128-byte sector 1: 128-byte
SAL-XC886CLM functional description data sheet 52 v1.0, 2010-05 3.3.3 flash programming width for the p-flash banks, a programmed wordlin e (wl) must be erased before it can be reprogrammed as the flash cells can only withstand one gate dist urb. this means that the entire sector cont aining the wl must be erased sinc e it is impossible to erase a single wl. for the d-flash bank, the sa me wl can be progra mmed twice before er asing is required as the flash cells are able to withstand two gat e disturbs. this means if the number of data bytes that needs to be written is sm aller than the 32-byt e minimum programming width, the user can opt to program this nu mber of data bytes (x ; where x can be any integer from 1 to 31) first a nd program the remain ing bytes (32 - x) la ter. hence, it is possible to program the same wl, for example, with 16 bytes of data two times (see figure 11 ) figure 11 d-flash programming note: when programming a d-fl ash wl the second time, the previously programmed flash memory cells (whether 0s or 1s) should be reprogrammed with 0s to retain its original contents and to prevent ?over-programming?. 0000 ?.. 0000 h 0000 ?.. 0000 h 32 bytes (1 wl) 1111 ?.. 1111 h 0000 ?.. 0000 h 16 bytes 16 bytes 0000 ?.. 0000 h 1111 ?.. 1111 h flash memory cells 32-byte write buffers 1111 ?.. 0000 h 1111 ?.. 1111 h 0000 ?.. 0000 h 1111 ?.. 0000 h program 1 program 2 note: a flash memory cell can be programmed from 0 to 1, but not from 1 to 0.
SAL-XC886CLM functional description data sheet 53 v1.0, 2010-05 3.4 interrupt system the xc800 core supports one non-maskable interrupt (nmi ) and 14 maskable interrupt requests. in addition to the standard interr upt functions supporte d by the core, e.g., configurable interrupt priori ty and interrupt masking, t he sal-xc886 interrupt system provides extended interrupt su pport capabilitie s such as the mapping of each interrupt vector to several interrupt sources to increase the number of interrupt sources supported, and additional stat us registers for detecting and determining the interrupt source. 3.4.1 interrupt source figure 12 to figure 16 give a general overview of t he interrupt sour ces and nodes, and their corresponding co ntrol and status flags. figure 12 non-maskable in terrupt request sources 0073 h nmiwdt nmicon.0 wdt overflow >=1 non maskable interrupt nmipll nmicon.1 pll loss of lock nmiflash flash operation complete nmivdd nmicon.4 vdd pre-warning fnmiwdt nmiisr.0 fnmipll nmiisr.1 fnmiflash nmiisr.2 fnmivdd nmiisr.4 nmivddp nmicon.5 vddp pre-warning fnmivddp nmiisr.5 nmiecc nmicon.6 flash ecc error fnmiecc nmiisr.6
SAL-XC886CLM functional description data sheet 54 v1.0, 2010-05 figure 13 interrupt request sources (part 1) highest lowest priority leve l bit-addressable request flag is cleared by hardware 000b h et0 ien0.1 tf0 tcon.5 timer 0 overflow 001b h et1 ien0.3 tf1 tcon.7 timer 1 overflow ip.1/ iph.1 ip.3/ iph.3 0023 h es ien0.4 ip.4/ iph.4 >=1 ri scon.0 ti scon.1 uart transmit 0003 h ex0 ien0.0 ie0 tcon.1 ip.0/ iph.0 0013 h ip.2/ iph.2 it0 tcon.0 ex1 ien0.2 ie1 tcon.3 it1 tcon.2 ien0.7 ea p o l l i n g s e q u e n c e uart receive exint0 exicon0.0/1 eint0 exint1 exicon0.2/3 eint1
SAL-XC886CLM functional description data sheet 55 v1.0, 2010-05 figure 14 interrupt request sources (part 2) highest lowest priority leve l bit-addressable request flag is cleared by hardware 002b h ip.5/ iph.5 p o l l i n g s e q u e n c e 0033 h eadc ien1.0 ip1.0/ iph1.0 >=1 adcsr0 ircon1.3 adc_0 adc_1 adcsr1 ircon1.4 cansrc1 ircon1.5 multican_1 et2 ien0.5 >=1 tf2 t2_t2con.7 exf2 t2_t2con.6 timer 2 overflow exen2 t2_t2con.3 cansrc0 ircon2.0 multican_0 ndov fdcon.2 normal divider overflow ien0.7 ea cansrc2 ircon1.6 multican_2 t2ex edges el t2_t2mod.5 >=1 eofsyn fdcon.4 end of synch byte errsyn fdcon.5 synch byte error >=1 synen
SAL-XC886CLM functional description data sheet 56 v1.0, 2010-05 figure 15 interrupt request sources (part 3) highest lowest priority leve l bit-addressable request flag is cleared by hardware p o l l i n g s e q u e n c e 003b h essc ien1.1 ip1.1/ iph1.1 >=1 tir ircon1.1 rir ircon1.2 eir ircon1.0 ssc_eir ssc_tir ssc_rir ien0.7 ea 0043 h ip1.2/ iph1.2 exint2 exicon0.4/5 exint2 ircon0.2 eint2 ex2 ien1.2 irdy mdustat.0 mdu_0 mdu_1 ierr mdustat.1 eoc cdstatc.2 cordic >=1 >=1 ri uart1_scon.0 ti uart1_scon.1 uart1 ndov normal divider overflow uart1_fdcon.2 tf2 t21_t2con.7 exf2 t21_t2con.6 timer 21 overflow exen2 t21_t2con.3 t21ex edges el t21_t2mod.5 >=1
SAL-XC886CLM functional description data sheet 57 v1.0, 2010-05 figure 16 interrupt request sources (part 4) ien0.7 highest lowest priority level bit-addressable request flag is cleared by hardware p o l l i n g s e q u e n c e ea 004b h exm ien1.3 ip1.3/ iph1.3 >=1 exint5 exicon1.2/3 exint5 ircon0.5 eint5 exint3 exicon1.0/1 exint4 ircon0.4 eint4 exint3 exicon0.6/7 exint3 ircon0.3 eint3 exint6 exicon1.4/5 exint6 ircon0.6 eint6 cansrc3 ircon2.4 multican_3
SAL-XC886CLM functional description data sheet 58 v1.0, 2010-05 figure 17 interrupt request sources (part 5) highest lowest priority leve l p o l l i n g s e q u e n c e ien0.7 bit-addressable request flag is cleared by hardware ea 0053 h ccu6 interrupt node 0 ip1.4/ iph1.4 005b h ip1.5/ iph1.5 0063 h ip1.6/ iph1.6 006b h ip1.7/ iph1.7 eccip0 ien1.4 eccip1 ien1.5 eccip2 ien1.6 eccip3 ien1.7 cansrc4 ircon3.1 multican_4 >=1 ccu6 interrupt node 1 cansrc5 ircon3.5 multican_5 >=1 ccu6 interrupt node 2 cansrc6 ircon4.1 mutlican_6 >=1 ccu6 interrupt node 3 cansrc7 ircon4.5 multican_7 >=1 ccu6sr0 ircon3.0 ccu6sr1 ircon3.4 ccu6sr2 ircon4.0 ccu6src3 ircon4.4
SAL-XC886CLM functional description data sheet 59 v1.0, 2010-05 3.4.2 interrupt source and vector each interrupt event source has an associat ed interrupt vector addr ess for the interrupt node it belongs to. this vect or is accessed to service th e corresponding interrupt node request. the interrupt service of each inte rrupt source can be in dividually enabled or disabled via an enable bit. th e assignment of the sal-xc886 interrupt sources to the interrupt vector a ddress and the corresponding inte rrupt node enable bits are summarized in table 19 . table 19 interrupt vector addresses interrupt source vector address assignment for sal- xc886 enable bit sfr nmi 0073 h watchdog timer nmi nmiwdt nmicon pll nmi nmipll flash nmi nmiflash vddc prewarning nmi nmivdd vddp prewarning nmi nmivddp flash ecc nmi nmiecc xintr0 0003 h external interrupt 0 ex0 ien0 xintr1 000b h timer 0 et0 xintr2 0013 h external interrupt 1 ex1 xintr3 001b h timer 1 et1 xintr4 0023 h uart es xintr5 002b h t2 et2 uart fractional divider (normal divider overflow) multican node 0 lin
SAL-XC886CLM functional description data sheet 60 v1.0, 2010-05 xintr6 0033 h multican nodes 1 and 2 eadc ien1 adc[1:0] xintr7 003b h ssc essc xintr8 0043 h external interrupt 2 ex2 t21 cordic uart1 uart1 fractional divider (normal divider overflow) mdu[1:0] xintr9 004b h external interrupt 3 exm external interrupt 4 external interrupt 5 external interrupt 6 multican node 3 xintr10 0053 h ccu6 inp0 eccip0 multican node 4 xintr11 005b h ccu6 inp1 eccip1 multican node 5 xintr12 0063 h ccu6 inp2 eccip2 multican node 6 xintr13 006b h ccu6 inp3 eccip3 multican node 7 table 19 interrupt vector addresses (cont?d) interrupt source vector address assignment for sal- xc886 enable bit sfr
SAL-XC886CLM functional description data sheet 61 v1.0, 2010-05 3.4.3 interrupt priority an interrupt that is currentl y being serviced can only be in terrupted by a higher-priority interrupt, but not by ano ther interrupt of the sa me or lower priority. hence, an interrupt of the highest priority cannot be interr upted by any other interrupt request. if two or more requests of different priority levels ar e received simultaneously, the request of the highest priority is serviced first. if requests of th e same prio rity are received simultaneously, then an internal pol ling sequence determi nes which request is serviced first. thus, within ea ch priority level, there is a second priority structure determined by the polli ng sequence shown in table 20 . table 20 priority structur e within interrupt level source level non-maskable interrupt (nmi) (highest) external interrupt 0 1 timer 0 interrupt 2 external interrupt 1 3 timer 1 interrupt 4 uart interrupt 5 timer 2,uart normal divider overflow, multican, lin interrupt 6 adc, multican interrupt 7 ssc interrupt 8 external interrupt 2, timer 21, ua rt1, uart1 normal divider overflow, mdu, cordic interrupt 9 external interrupt [6:3 ], multican interrupt 10 ccu6 interrupt node pointe r 0, multican interrupt 11 ccu6 interrupt node pointe r 1, multican interrupt 12 ccu6 interrupt node pointe r 2, multican interrupt 13 ccu6 interrupt node pointe r 3, multican interrupt 14
SAL-XC886CLM functional description data sheet 62 v1.0, 2010-05 3.5 parallel ports the sal-xc886 has 34 port pins organized into five parallel ports, port 0 (p0) to port 4 (p4). each pin has a pair of in ternal pull-up and pu ll-down devices that can be individually enabled or disabled. ports p0, p1, p3 and p4 are bidirectional and can be used as general purpose inpu t/output (gpio) or to perform alte rnate input/output functions for the on-chip peripherals. when configured as an output, the op en drain mode can be selected. port p2 is an inpu t-only port, providing gener al purpose i nput functions, alternate input fu nctions for the on-chip peripherals, and also analog inputs for the analog-to-digital converter (adc). bidirectional port features ? configurable pin direction ? configurable pull-up /pull-down devices ? configurable open drain mode ? transfer of data through digital inpu ts and outputs (ge neral purpose i/o) ? alternate input/output for on-chip peripherals input port features ? configurable input driver ? configurable pull-up /pull-down devices ? receive of data through digita l input (general purpose input) ? alternate input for on-chip peripherals ? analog input for adc module
SAL-XC886CLM functional description data sheet 63 v1.0, 2010-05 figure 18 shows the structure of a bidirectional port pin. figure 18 general structur e of bidirectional port px_od open drain control register px_data data register internal bus altdataout 2 px_altsel0 alternate select register 0 px_altsel1 alternate select register 1 altdatain pin px_puden pull-up/pull-down enable register px_pudsel pull-up/pull-down select register altdataout1 pad out in output driver input driver 00 schmitt trigger enable enable pull up device pull down device vddp enable enable px_dir direction register 01 10 altdataout 3 11
SAL-XC886CLM functional description data sheet 64 v1.0, 2010-05 figure 19 shows the structure of an input-only port pin. figure 19 general structure of input port px_data data register internal bus altdatain px_puden pull-up/ pull-down enable register px_pudsel pull-up/ pull-down select register in input driver schmitt trigger analogin px_dir direction register pad pull up device pull down device vddp enable enable enable pin
SAL-XC886CLM functional description data sheet 65 v1.0, 2010-05 3.6 power supply system with embedded voltage regulator the sal-xc886 microcontrol ler requires two different levels of power supply: ? 5.0 v for the embedded voltag e regulator (evr) and ports ? 2.5 v for the core, memory, on-ch ip oscillator, and peripherals figure 20 shows the sal-xc886 power supply system. a power suppl y of 5.0 v must be provided from the external power supply pin. the 2.5 v power supply for the logic is generated by the evr. the evr helps to reduce the pow er consumption of the whole chip and the complexity of the applicatio n board design. the evr consists of a main voltage regula tor and a low power voltage regulator. in active mode, both voltage regulators are enabled. in power-down mode, the main voltage regulator is switched off, while the low power voltage re gulator continues to function and provide power supply to th e system with low power consumption. figure 20 sal-xc886 power supply system evr features ? input voltage ( v ddp ): 5.0 v ? output voltage ( v ddc ): 2.5 v 7.5% ? low power voltage regulator provided in power-down mode ? v ddc and v ddp prewarning detection ? v ddc brownout detection on-chip osc cpu & memory v ddc (2.5v) v ddp (5.0v) v ssp gpio ports (p0-p5) evr peripheral logic flash adc pll xtal 1& xtal 2
SAL-XC886CLM functional description data sheet 66 v1.0, 2010-05 3.7 reset control the sal-xc886 has five types of reset: power-on re set, hardware rese t, watchdog timer reset, power-down wake-up re set, and brownout reset. when the sal-xc886 is first powered up , the status of certain pins (see table 22 ) must be defined to ensure pr oper start operation of the device . at the end of a reset sequence, the sampled values are latched to select the desired b oot option, which cannot be modified until the next power-on reset or hardware reset. th is guarantees stable conditions during the norma l operation of the device. in order to power up the system pr operly, the external reset pin reset must be asserted until v ddc reaches 0.9* v ddc . the delay of external reset ca n be realized by an external capacitor at reset pin. this capacitor value must be selected so that v reset reaches 0.4 v, but not before v ddc reaches 0.9* v ddc. a typical application example is shown in figure 21 . the v ddp capacitor value is 100 nf while the v ddc capacitor value is 220 nf. t he capacitor connected to reset pin is 100 nf. typically, the time taken for v ddc to reach 0.9* v ddc is less than 50 s once v ddp reaches 2.3v. hence, based on the condition that 10% to 90% v ddp (slew rate) is less than 500 s, the reset pin should be held low for 500 s typically. see figure 22 . figure 21 reset circuitry v ssp v ddp v ddc v ssc 5v reset evr vr v in 100nf 220nf typ. 100nf xc886 30k
SAL-XC886CLM functional description data sheet 67 v1.0, 2010-05 figure 22 v ddp, v ddc and v reset during power-on reset the second type of reset in sal-xc886 is the hardware reset. th is reset function can be used during normal operation or when the chip is in po wer-down mode. a reset input pin reset is provided for th e hardware reset. the watchdog timer (wdt) module is also capable of resett ing the device if it detects a malfunction in the system. another type of reset that needs to be detected is a re set while the device is in power-down mode (wake-up reset). while the contents of the stat ic ram are undefined after a power-on reset, they are well defin ed after a wake-up reset from power-down mode. v ddp reset wit h capacitor 2.3v v ddc < 0.4v 0.9* v ddc 0v 5v 5v 2.5v voltage voltage time time typ. < 50 s
SAL-XC886CLM functional description data sheet 68 v1.0, 2010-05 3.7.1 module reset behavior table 21 lists the functions of the sal-xc886 and the various reset types that affect these functions. the symbol ? ? signifies that the particular fu nction is reset to its default state. 3.7.2 booting scheme when the sal-xc886 is re set, it must identify the type of configurati on with which to start the different modes once the reset sequenc e is complete. thus, boot configuration information that is required for activation of special modes and condit ions needs to be applied by the external world through input pins. after power-on reset or hardware reset, the pins mbc, tms and p0 .0 collectively select t he different boot options. table 22 shows the available boot opt ions in the sal-xc886. table 21 effect of reset on device functions module/ function wake-up reset watchdog reset hardware reset power-on reset brownout reset cpu core peripherals on-chip static ram not affected, reliable not affected, reliable not affected, reliable affected, un- reliable affected, un- reliable oscillator, pll not affected port pins evr the voltage regulator is switched on not affected flash nmi disabled disabled table 22 sal-xc886 boot selection mbc tms p0.0 type of mode pc start value 1 0 x user mode 1) ; on-chip osc/pll non-bypassed 0000 h 0 0 x bsl mode; on-chip osc/pll non-bypassed 2) 0000 h 0 1 0 ocds mode; on-chip osc/pll non- bypassed 0000 h 1 1 0 user (jtag) mode 3) ; on-chip osc/pll non- bypassed (normal) 0000 h
SAL-XC886CLM functional description data sheet 69 v1.0, 2010-05 note: the boot options are valid only with t he default set of uart and jtag pins. 3.8 clock generation unit the clock generation unit (cgu ) allows great flexibility in the clock generation for the sal-xc886. the power consumptio n is indirectly proportional to the freque ncy, whereas the performance of the microc ontroller is directly propor tional to the frequency. during user program execution, th e frequency can be programmed for an optimal ratio between performance and power cons umption. therefore the power consumption can be adapted to the actual application state. features ? phase-locked loop (pll) for multiplyin g clock source by different factors ?pll base mode ? prescaler mode ?pll mode ? power-down mode support the cgu consists of an oscillator circuit and a pll. in the sal-xc886, the oscillator can be from either of these two sources: t he on-chip oscillator (1 0 mhz) or the external oscillator (4 mhz to 12 mhz). the term ?osc illator? is used to re fer to both on-chip oscillator and external osci llator, unless otherwise stated . after the reset, the on-chip oscillator will be used by default.the external oscillator can be se lected via software. in addition, the pll prov ides a fail-safe logic to perform oscillator run and loss-of-lock detection. this allows emer gency routines to be executed for system recovery or to perform system shut down. 1) bsl mode is automatically entered if no valid password is installed and data at memory address 0000h equals zero. 2) osc is bypassed in multican bsl mode 3) normal user mode with standard jtag (t ck,tdi,tdo) pins for hot-attach purpose.
SAL-XC886CLM functional description data sheet 70 v1.0, 2010-05 figure 23 cgu block diagram pll base mode when the oscillator is disconnect ed from the pll, the system clock is derived from the vco base (free running) frequency clock ( table 24 ) divided by the k factor. (3.1) prescaler mode (vco bypass operation) in vco bypass operatio n, the system clock is derived from the os cillator clock, divided by the p and k factors. (3.2) pll core lock detect n:1 p:1 fvco fn fp osc fail detect osc fosc k:1 fsys ndiv oscdisc oscr lock vcobyp pllbyp f sys f vcobase 1 k --- - = f sys f osc 1 pk ------------- =
SAL-XC886CLM functional description data sheet 71 v1.0, 2010-05 pll mode the system clock is derived from the oscill ator clock, multipli ed by the n factor, and divided by the p and k factor s. both vco bypass and pll bypass must be inactive for this pll mode. the pll mode is used during normal system operation. (3.3) system frequency selection for the sal-xc886, the value of p is fixed to 1. in order to obtain the requi red fsys, the value of n and k can be sele cted by bits ndiv and kdiv respectively for different oscillator inputs. the output frequency mu st always be configur ed for 80 mhz. table 23 provides examples on how f sys = 80 mhz can be obtained fo r the different oscillator sources. table 23 system frequency ( f sys =80mhz) oscillator fosc n p k fsys on-chip 10 mhz 16 1 2 80 mhz external 8 mhz 20 1 2 80 mhz 5 mhz 32 1 2 80 mhz 4 mhz 40 1 2 80 mhz f sys f osc n pk ------------- =
SAL-XC886CLM functional description data sheet 72 v1.0, 2010-05 table 24 shows the vco rang e for the sal-xc886. 3.8.1 recommended external oscillator circuits the oscillator circuit, a pierce oscillator, is designed to work with bot h, an external crystal oscillator or an external stable clock source. it basically consists of an inverting amplifier and a feedback element with xtal 1 as input, and xtal2 as output. when using a crystal, a proper external oscillator circuitr y must be con nected to both pins, xtal1 and xtal2. th e crystal frequency can be within the range of 4 mhz to 12 mhz. additionally, it is necessary to have two load capacitances c x1 and c x2 , and depending on the crystal ty pe, a series resistor r x2 , to limit the current. a test resistor r q may be temporarily inserted to measure the oscillation allo wance (negative resistance) of the oscillator circuitry. r q values are typically specifie d by the crystal vendor. the c x1 and c x2 values shown in figure 24 can be used as starti ng points for the negative resistance evaluation and for non-producti ve systems. the exact values and related operating range are dependent on the crystal frequency and have to be determined and optimized together wit h the crystal vendor using the negative resistance method. oscillation measurement with the final target system is st rongly recommended to verify the input amplitude at xtal1 and to determ ine the actual oscillation allowance (margin negative resistance) for the oscillator-crystal system. when using an external clock si gnal, the signal must be co nnected to xtal1. xtal2 is left open (unconnected). the oscillator can also be us ed in combination with a ceramic re sonator. the final circuitry must also be verifi ed by the res onator vendor. figure 24 shows the recommended external oscillator circuitries fo r both operating mode s, external crystal mode and external input clock mode. table 24 vco range f vcomin f vcomax f vcofreemin f vcofreemax unit 150 200 20 80 mhz 100 150 10 80 mhz
SAL-XC886CLM functional description data sheet 73 v1.0, 2010-05 figure 24 external os cillator circuitry note: for crystal operation, it is st rongly recommended to measure the negative resistance in the final target system (lay out) to determine t he optimum parameters for the oscillator operation. please refer to the mini mum and maximum values of the negative resistance specif ied by the crystal supplier. clock_exosc xc886 oscillator v ss c x1 4 - 12 mhz c x2 xtal1 xtal2 xc886 oscillator xtal1 xtal2 external clock signal f osc f osc fundamental mode crystal crystal frequency c x1 , c x2 1) 4 mhz 8 mhz 10 mhz 12 mhz 12 pf 15 pf 18 pf 33 pf 1) note that these are evaluation start values! r x2 1) 0 0 0 0 r x2 r q v ss
SAL-XC886CLM functional description data sheet 74 v1.0, 2010-05 3.8.2 clock management the cgu generates all clock signals required within the mi crocontroller from a single clock, f sys . during normal syst em operation, the typical fr equencies of the different modules are as follow: ? cpu clock: cclk, sclk = 20 mhz ? fast clock (used by multica n): fclk = 20 or 40 mhz ? peripheral clock: pclk = 20 mhz ? flash interface clock: cclk2 = 40 mhz and cclk = 20 mhz in addition, different clock freq uencies can be output to pin clkout (p0.0 or p0.7). the clock output frequency, which is derived from the clock out put divider (bit corel), can further be divided by 2 using toggle latch (bit tl en is set to 1). th e resulting output frequency has a 50% duty cycle. figure 25 shows the clock distribution of the sal- xc886. figure 25 clock generation from f sys pll n,p,k fsys = 80 mhz clkrel cclk sclk pclk cclk2 core peripherals flash interface osc clkout fosc corel couts toggle latch tlen /2 multican fclk fccfg /2 sd 0 1
SAL-XC886CLM functional description data sheet 75 v1.0, 2010-05 for power saving purposes, the clocks may be disabled or slowed down according to table 25 . table 25 system frequency ( f sys =80mhz) power saving mode action idle clock to the cpu is disabled. slow-down clocks to the cpu and all th e peripherals are divided by a common programmable factor defined by bit field cmcon.clkrel. power-down oscillator an d pll are switched off.
SAL-XC886CLM functional description data sheet 76 v1.0, 2010-05 3.9 power saving modes the power saving modes of the sal-xc886 provide flexib le power consumption through a combination of te chniques, including: ? stopping the cpu clock ? stopping the clocks of i ndividual system components ? reducing clock speed of some peripheral components ? power-down of the entire system with fast restart capability after a reset, the ac tive mode (normal operating m ode) is selected by default (see figure 26 ) and the system runs in the main system clock freque ncy. from active mode, different power saving modes can be selected by software. they are: ? idle mode ? slow-down mode ? power-down mode figure 26 transition betw een power saving modes power-down idle active slow-down set pd bit set pd bit set idle bit set idle bit set sd bit clear sd bit any interrupt & sd=0 exint0/rxd pin & sd=0 exint0/rxd pin & sd=1 any interrupt & sd=1
SAL-XC886CLM functional description data sheet 77 v1.0, 2010-05 3.10 watchdog timer the watchdog timer (wdt) provides a high ly reliable and secure way to detect and recover from software or hardwa re failures. the wdt is reset at a regular interval that is predefined by the user . the cpu must service the wdt within this inte rval to prevent the wdt from causing an sal-xc8 86 system reset. hence, routine service of the wdt confirms that the system is functioning properly. this ensure s that an accidental malfunction of the sal-xc 886 will be aborted in a us er-specified time period. in debug mode, the wdt is def ault suspended and stops coun ting. therefore, there is no need to refresh t he wdt during debugging. features ? 16-bit watchdog timer ? programmable reload value fo r upper 8 bits of timer ? programmable window boundary ? selectable input frequency of f pclk /2 or f pclk /128 ? time-out detection wit h nmi generation and reset prew arning activation (after which a system reset will be performed) the wdt is a 16-bit timer incr emented by a count rate of f pclk /2 or f pclk /128. this 16-bit timer is realized as two concatenated 8-bi t timers. the upper 8 bits of the wdt can be preset to a user-programmable value via a wa tchdog service access in order to modify the watchdog expire time per iod. the lower 8 bits are reset on each service access. figure 27 shows the block diag ram of the wdt unit. figure 27 wdt block diagram wdtrel mux wdt low byte 1:2 clear wdt control 1:128 wdt high byte fnmiwdt wdtin f pclk logic enwdt enwdt_p wdtrst overflow/time-out control & window-boundary control wd twinb .
SAL-XC886CLM functional description data sheet 78 v1.0, 2010-05 if the wdt is not serviced bef ore the timer overflow, a syst em malfunction is assumed. as a result, the wdt nmi is triggered (asse rt fnmiwdt) and the reset prewarning is entered. the prewarni ng period lasts for 30 h count, after which the system is reset (assert wdtrst). the wdt has a ?programmable window bounda ry? which disallows any refresh during the wdt?s count-up. a refr esh during this win dow boundary constitutes an invalid access to the wdt, causing th e reset prewarning to be ent ered but without triggering the wdt nmi. the system will still be reset afte r the prewarning period is over. the window boundary is from 0000 h to the value obtained from the concatenati on of wdtwinb and 00 h . after being serviced, the wd t continues co unting up from the value ( * 2 8 ). the time period for an overflow of the wdt is programmable in two ways: ? the input frequency to the wdt can be sele cted to be either f pclk /2 or f pclk /128 ? the reload value wdtrel for the high by te of wdt can be pr ogrammed in register wdtrel the period, p wdt , between servicing the wdt and th e next overflow can be determined by the following formula: (3.4) if the window-boundary refresh featur e of the wdt is enabled, the period p wdt between servicing the wdt and the next overflow is shorte ned if wdtwinb is greater than wdtrel, see figure 28 . this period can be calculated using the same formula by replacing wdtrel with wdtwin b. for this feature to be useful, wdtwinb cannot be smaller than wdtrel. p wdt 2 1wdtin +6 () 2 16 wdtrel ?2 8 () f pclk --------------------------------------------------------------------------------------------------------- =
SAL-XC886CLM functional description data sheet 79 v1.0, 2010-05 figure 28 wdt timing diagram table 26 lists the possible watchdog time ranges that can be achiev ed using a certain module clock. some numbers are rounded to 3 significant digits. table 26 watchdog time ranges reload value in wdtrel prescaler for f pclk 2 (wdtin = 0) 128 (wdtin = 1) 20 mhz 20 mhz ff h 25.6 s1.64 ms 7f h 3.30 ms 211 ms 00 h 6.55 ms 419 ms wdtrel wdtwinb time count ffff h no refresh allowed refresh allowed
SAL-XC886CLM functional description data sheet 80 v1.0, 2010-05 3.11 multiplication/division unit the multiplication/divis ion unit (mdu) provides fast 16-bit multiplication, 16-bit and 32-bit division as well as sh ift and normalize features. it has been integrated to support the sal-xc886 core in real-time control app lications, which require fast mathematical computations. features ? fast signed/unsigned 16-bit multiplication ? fast signed/unsigned 32-bit di vide by 16-bit and 16-bit divide by 16-bit operations ? 32-bit unsigned no rmalize operation ? 32-bit arithmetic/logi cal shift operations table 27 specifies the number of clock cycles used for calculat ion in various operations. table 27 mdu operation characteristics operation result remainder n o. of clock cycles used for calculation signed 32-bit/16-bit 32-bit 16-bit 33 signed 16-bit/16bit 16-bit 16-bit 17 signed 16-bit x 16-bit 32-bit - 16 unsigned 32-bit/16-bit 32-bit 16-bit 32 unsigned 16-bit/16-bit 16-bit 16-bit 16 unsigned 16-bit x 16-bit 32-bit - 16 32-bit normalize - - no. of shifts + 1 (max. 32) 32-bit shift l/r - - no. of shifts + 1 (max. 32)
SAL-XC886CLM functional description data sheet 81 v1.0, 2010-05 3.12 cordic coprocessor the cordic coprocessor provides cpu wit h hardware support for the solving of circular (trigonometric), linear (multiply-a dd, divide-add) and hy perbolic functions. features ? modes of operation ? supports all cordic operatin g modes for solving circul ar (trigonometric), linear (multiply-add, divide-add) and hyperbolic functions ? integrated look-up tables (l uts) for all operating modes ? circular vectoring mode: ext ended support for values of in itial x and y data up to full range of [-2 15 ,(2 15 -1)] for solving angle and magnitude ? circular rotation mode: extended support for values of initial z data up to full range of [-2 15 ,(2 15 -1)], representing angles in the range [- ,((2 15 -1)/2 15 ) ] for solving trigonometry ? implementation-depen dent operational frequency of up to 80 mhz ? gated clock input to s upport disabling of module ? 16-bit accessible data width ? 24-bit kernel data width plus 2 overflow bits for x and y each ? 20-bit kernel data width plus 1 overflow bit for z ? with keep bit to retain the la st value in the kernel regi ster for a new calculation ? 16 iterations per calculation: approximately 41 cl ock-cycles or less, from set of start (st) bit to set of end-of-calculation flag, excludi ng time taken for write and read access of data bytes. ? twos complement data processing ? only exception: x result data with us er selectable option for unsigned result ? x and y data generally acce pted as integer or ratio nal number; x and y must be of the same data form ? entries of luts are 20-bit signed integers ? entries of atan and atanh luts are inte ger representations (s19) of angles with the scaling such that [-2 15 ,(2 15 -1)] represents the range [- ,((2 15 -1)/2 15 ) ] ? accessible z result data for circular and hy perbolic functions is integer in data form of s15 ? emulated lut fo r linear function ? data form is 1 integer bit and 15-bit fractional part (1.15) ? accessible z result data fo r linear function is rational number with fi xed data form of s4.11 (signed 4q16) ? truncation error ? the result of a cordic calc ulation may return an appr oximation due to truncation of lsbs ? good accuracy of the cordic calculated result data, especially in circular mode ? interrupt ? on completion of a calculation
SAL-XC886CLM functional description data sheet 82 v1.0, 2010-05 ? interrupt enabling a nd corresponding flag 3.13 uart and uart1 the sal-xc886 provides two universal a synchronous receiver/t ransmitter (uart and uart1) modules for full- duplex asynchronous recept ion/transmission. both are also receive-buffered, i.e., they can commence recepti on of a second byte before a previously received byte has been read from the receive register. however, if the first byte still has not been read by the time rece ption of the second by te is complete, one of the bytes will be lost. features ? full-duplex asynchronous modes ? 8-bit or 9-bit data frames, lsb first ? fixed or vari able baud rate ? receive buffered ? multiprocessor communication ? interrupt generation on the completion of a data transmission or reception the uart modules can operate in the four modes shown in table 28 . there are several ways to ge nerate the baud rate clock fo r the serial port, depending on the mode in which it is operating. in mode 0, the baud rate for the transfer is fixed at f pclk /2. in mode 2, the baud rate is generated internally based on th e uart input clock and can be configured to either f pclk /32 or f pclk /64. for uart1 module, only f pclk /64 is available. the variable baud rate is set by the underflo w rate on the dedicated baud-rate generator. for uart module, t he variable baud rate alter natively can be set by the overflow rate on timer 1. 3.13.1 baud-rate generator both uart modules have their own dedicat ed baud-rate generator , which is based on a programmable 8-bit reload value, and in cludes divider stages (i.e., prescaler and table 28 uart modes operating mode baud rate mode 0: 8-bit shift register f pclk /2 mode 1: 8-bit shift uart variable mode 2: 9-bit shift uart f pclk /32 or f pclk /64 1) 1) for uart1 module, the baud rate is fixed at f pclk /64. mode 3: 9-bit shift uart variable
SAL-XC886CLM functional description data sheet 83 v1.0, 2010-05 fractional divider) for generating a wide ra nge of baud rates based on its input clock f pclk , see figure 29 . figure 29 baud-rate generator circuitry the baud rate timer is a count-down timer a nd is clocked by eith er the output of the fractional divider ( f mod ) if the fractional divider is enabled (fdcon.fden = 1), or the output of the prescaler ( f div ) if the fractional divider is disabled (fden = 0). for baud rate generation, the fractional di vider must be configured to fractional divider mode (fdcon.fdm = 0). this allows the baud rate contro l run bit bcon.r to be used to start or stop the baud ra te timer. at each time r underflow, the timer is reloaded with the 8-bit reload value in register bg and one clock pulse is genera ted for the serial channel. enabling the fractional divider in normal divider mode (fden = 1 and fdm = 1) stops the baud rate timer and nullifies t he effect of bit bcon.r. see section 3.14 . the baud rate ( f br ) value is dependent on th e following parameters: ? input clock f pclk ? prescaling factor (2 brpre ) defined by bit field br pre in register bcon ? fractional divider (step/256 ) defined by register fdstep (to be considered only if fractional divider is enab led and operatin g in fractional divider mode) ? 8-bit reload value (br_val ue) for the baud rate time r defined by register bg fdstep 1 fdm adder fdres fden&fdm clk fractional divider prescaler ndov ?0? fden 00 01 10 11 11 10 01 00 0 1 (overflow) 0 f br 8-bit baud rate timer 8-bit reload value r 0 1 f div f div f pcl k f mod
SAL-XC886CLM functional description data sheet 84 v1.0, 2010-05 the following formulas calculate the final baud rate without a nd with the fractional divider respectively: (3.5) (3.6) the maximum baud rate that can be generated is limited to f pclk /32. hence, for a module clock of 20 mhz, the maximum ac hievable baud rate is 0.625 mbaud. standard lin protocol can support a maximum baud rate of 20 kh z, the baud rate accuracy is not critical and the fractional divider can be disabled. only the prescaler is used for auto baud rate calcul ation. for lin fast mode, which support s the baud rate of 20 khz to 115.2 khz, the higher baud rates require the use of the frac tional divider for greater accuracy. table 29 lists the various common ly used baud rates with their corresponding parameter settings and deviation errors. the fractiona l divider is disabled and a module clock of 20 mhz is used. the fractional divider allows baud rates of hi gher accuracy (lower deviation error) to be generated. table 30 lists the resulting de viation errors from ge nerating a b aud rate of 115.2 khz, using different modu le clock frequencies. the fr actional divider is enabled (fractional divider mode) and the corresponding param eter settings are shown. table 29 typical baud rates for uart with fractional divider disabled baud rate prescaling factor (2brpre) reload value (br_value + 1) deviation error 19.2 kbaud 1 (brpre=000 b ) 65 (41 h )0.16% 9600 baud 1 (brpre=000 b ) 130 (82 h )0.16% 4800 baud 2 (brpre=001 b ) 130 (82 h )0.16% 2400 baud 4 (brpre=010 b ) 130 (82 h )0.16% baud rate f pclk 16 2 brpre br_value 1 + () ------------------------------------------------------------------------------------ where 2 brpre br_value 1 + () 1 > = baud rate f pclk 16 2 brpre br_value 1 + () ------------------------------------------------------------------------------------ step 256 -------------- - =
SAL-XC886CLM functional description data sheet 85 v1.0, 2010-05 3.13.2 baud rate generation using timer 1 in uart modes 1 and 3 of uart module, timer 1 can be used for generating the variable baud rates. in theo ry, this timer could be used in any of its modes. but in practice, it should be set into auto-reload mo de (timer 1 mode 2), with its high byte set to the appropriate value for the required b aud rate. the baud rate is determined by the timer 1 overflow rate and th e value of smod as follows: (3.7) 3.14 normal divider mode (8-bit auto-reload timer) setting bit fdm in register fdco n to 1 configures the fraction al divider to normal divider mode, while at the sa me time disables b aud rate generation (see figure 29 ). once the fractional divider is enabled (fden = 1), it f unctions as an 8-bit auto-reload timer (with no relation to baud rate gener ation) and counts up from the reload value with each input clock pulse. bit field result in register fdres represents the timer value, while bit field step in register fdstep defines the reload value. at eac h timer overflow, an overflow flag (fdcon.ndov) will be set and an interrupt requ est generated. this gives an output clock f mod that is 1/n of the input clock f div , where n is defined by 256 - step. the output frequency in normal divider mode is derived as follows: (3.8) table 30 deviation error for uart wi th fractional divider enabled f pclk prescaling factor (brpre) reload value (br_value + 1) step deviation error 20 mhz 1 10 (a h ) 230 (e6 h ) +0.03 % 10 mhz 1 5 (5 h ) 230 (e6 h ) +0.03 % 6.67 mhz 1 3 (3 h ) 212 (d4 h ) -0.16 % 5mhz 1 2 (2 h ) 189 (bd h ) +0.14 % mode 1, 3 baud rate 2 smod f pclk 32 2 256 th1 ? () ---------------------------------------------------- - = f mod f div 1 256 step ? ----------------------------- - =
SAL-XC886CLM functional description data sheet 86 v1.0, 2010-05 3.15 lin protocol the uart module can be used to support the local interc onnect network (lin) protocol for both master and slave operations. the lin baud rate detect ion feature, which consists of the hardware logic for break and synch byte detection, provides the capability to detect t he baud rate within lin protocol using timer 2. this allows the uart to be synchronized to the lin baud rate for data transmission and reception. note: the lin baud rate dete ction feature is available fo r use only with uart. to use uart1 for lin communication, software has to be implemented to detect the break and synch byte. lin is a holistic comm unication concept for local inte rconnected networks in vehicles. the communication is based on the sci (uart) data format, a single-master/multiple- slave concept, a clock synchronization fo r nodes without stab ilized time base. an attractive feature of lin is self-synchronization of the sl ave nodes without a crystal or ceramic resonator, which signif icantly reduces the co st of hardware pl atform. hence, the baud rate must be calc ulated and returned wit h every message frame. the structure of a li n frame is shown in figure 30 . the frame consists of the: ? header, which comprises a break ( 13-bit time low), synch byte (55 h ), and id field ? response time ? data bytes (according to uart protocol) ? checksum figure 30 structure of lin frame frame slot frame response response space header synch protected identifier data 1 data 2 data n checksum
SAL-XC886CLM functional description data sheet 87 v1.0, 2010-05 3.15.1 lin header transmission lin header transmission is on ly applicable in master mode . in the lin communication, a master task decides when and which fram e is to be transferred on the bus. it also identifies a slave task to pr ovide the data trans ported by each frame. the information needed for the handshaking betw een the master and slave ta sks is provided by the master task through the header portion of the frame. the header consists of a break and synch pattern followed by an identifier. among these three fields, only the break pat tern cannot be transmitted as a normal 8-bit uart data. the break must contain a dominant value of 13 bits or more to ensure proper synchronization of slave nodes. in the lin communication, a slave task is r equired to be synchronized at the beginning of the protected identifier fi eld of frame. for this purpos e, every frame starts with a sequence consisting of a brea k field followed by a synch by te field. this sequence is unique and provides enough in formation for any slave task to detect the beginning of a new frame and be synchro nized at the start of the identifier field. upon entering lin communicat ion, a connection is establ ished and the transfer speed (baud rate) of the serial communication part ner (host) is automat ically synchronized in the following steps: step 1: initialize interface for recept ion and timer for ba ud rate measurement step 2: wait for an inco ming lin frame from host step 3: synchronize the baud rate to the host step 4: enter for master request frame or for slave response frame note: re-synchronization and setup of baud rate are always done for every master request header or slave re sponse header lin frame.
SAL-XC886CLM functional description data sheet 88 v1.0, 2010-05 3.16 high-speed synchronous serial interface the high-speed synchronou s serial interface (ssc ) supports full-duplex and half-duplex synchronou s communication. the serial clock signal can be generated by the ssc internally (master m ode), using its own 16-bit bau d-rate generator, or can be received from an external master (slave mode ). data width, shift di rection, clock polarity and phase are programmable. this allows communication with spi-compatible devices or devices using other sync hronous serial interfaces. features ? master and slave mode operation ? full-duplex or ha lf-duplex operation ? transmit and receive buffered ? flexible data format ? programmable number of data bits: 2 to 8 bits ? programmable shift directi on: lsb or msb shift first ? programmable clock polarity: idle lo w or high state for the shift clock ? programmable clock/data phase: data shift with leading or traili ng edge of the shift clock ? variable baud rate ? compatible with serial pe ripheral interface (spi) ? interrupt generation ? on a transmitter empty condition ? on a receiver full condition ? on an error condition (receive, p hase, baud rate, transmit error) data is transmitted or received on lines txd and rxd, which are normally connected to the pins mtsr (master transmit/slave re ceive) and mrst (ma ster receive/slave transmit). the clock signal is output via line ms_clk (master serial shift clock) or input via line ss_clk (slave serial shift clock). both lines are normally connected to the pin sclk. transmission and receptio n of data are double-buffered. figure 31 shows the block di agram of the ssc.
SAL-XC886CLM functional description data sheet 89 v1.0, 2010-05 figure 31 ssc block diagram pclk ss_clk rir tir eir receive int. request transmit int. request error int. request control status txd(mas ter) rxd(slave) shift clock ms_clk rxd(master) txd(slave) internal bus baud-rate generator clock control ssc control block register con pin control 16-bit shift register transmit buffer register tb receive buffer register rb
SAL-XC886CLM functional description data sheet 90 v1.0, 2010-05 3.17 timer 0 and timer 1 timer 0 and timer 1 can func tion as both timers or count ers. when functioning as a timer, timer 0 and timer 1 are incremented every machine cycle, i.e. every 2 input clocks (or 2 pclks). when functioning as a counter, timer 0 and timer 1 are incremented in response to a 1-to-0 transiti on (falling edge) at their respective external input pins, t0 or t1. timer 0 and 1 are fully compat ible and can be configured in four different operating modes for use in a vari ety of applications, see table 31 . in modes 0, 1 and 2, the two timers operate ind ependently, but in mo de 3, their functions are specialized. table 31 timer 0 and timer 1 modes mode operation 0 13-bit timer the timer is essentially an 8-bit c ounter with a divide-by-32 prescaler. this mode is included solely for co mpatibility with in tel 8048 devices. 1 16-bit timer the timer registers, tlx and thx, are concatenated to form a 16-bit counter. 2 8-bit timer with auto-reload the timer register tlx is reloaded with a user-def ined 8-bit value in thx upon overflow. 3 timer 0 operates as two 8-bit timers the timer registers, tl0 and th0, ope rate as two separate 8-bit counters. timer 1 is halted and retain s its count ev en if enabled.
SAL-XC886CLM functional description data sheet 91 v1.0, 2010-05 3.18 timer 2 and timer 21 timer 2 and timer 21 ar e 16-bit general purpose timers (t hl2) that are fully compatible and have two modes of oper ation, a 16-bit auto-reload mode and a 16-bi t one channel capture mode, see table 32 . as a timer, the timers count with an input clock of pclk/12 (if prescaler is disabled). as a counter, they count 1-to-0 transitions on pin t2. in the counter mode, the maximum resolution for the count is pclk/24 (if prescaler is disabled). table 32 timer 2 modes mode description auto-reload up/down count disabled ? count up only ? start counting from 16-bit reload value, overflow at ffff h ? reload event confi gurable for trigger by overflow condition only, or by negative/positive edge at input pin t2ex as well ? programmble reload value in register rc2 ? interrupt is generate d with reload event up/down count enabled ? count up or down, direction dete rmined by level at input pin t2ex ? no interrupt is generated ? count up ? start counting from 16-bit re load value, overflow at ffff h ? reload event triggered by overflow condition ? programmble reload value in register rc2 ? count down ? start counting from ffff h , underflow at value defined in register rc2 ? reload event trigger ed by underflow condition ? reload value fixed at ffff h channel capture ? count up only ? start counting from 0000 h , overflow at ffff h ? reload event triggered by overflow condition ? reload value fixed at 0000 h ? capture event triggered by falling/rising ed ge at pin t2ex ? captured timer value st ored in register rc2 ? interrupt is gene rated with reload or capture event
SAL-XC886CLM functional description data sheet 92 v1.0, 2010-05 3.19 capture/compare unit 6 the capture/compare unit 6 (ccu6) provides two independent timers (t12, t13), which can be used for pulse width modulation (p wm) generation, especially for ac-motor control. the ccu6 also supports specia l control modes for block commutation and multi-phase machines. the timer t12 can function in capture and/or comp are mode for its three channels. the timer t13 can work in compare mode only. the multi-channel control unit generates output patterns, whic h can be modulated by t12 and/or t13. the modulation sources can be select ed and combined for the signal modulation. timer t12 features ? three capture/compare channels, each ch annel can be used eit her as a capture or as a compare channel ? supports generation of a three-phase pwm (six outputs, indi vidual signals for highside and lowside switches) ? 16-bit resolution, maximum count fr equency = peripheral clock frequency ? dead-time control for each channel to av oid short-circuits in the power stage ? concurrent update of the required t12/13 registers ? generation of cente r-aligned and edge-aligned pwm ? supports single-shot mode ? supports many interr upt request sources ? hysteresis-like control mode timer t13 features ? one independent compar e channel with one output ? 16-bit resolution, maximum count fr equency = peripheral clock frequency ? can be synchronized to t12 ? interrupt generation at per iod-match and compare-match ? supports single-shot mode additional features ? implements block commutati on for brushless dc-drives ? position detection vi a hall-sensor pattern ? automatic rotational speed meas urement for block commutation ? integrated error handling ? fast emergency stop without cpu load via external signal (ctrap ) ? control modes for multi-channel ac-drives ? output levels can be selected and adapted to the power stage the block diagram of the ccu6 module is shown in figure 32 .
SAL-XC886CLM functional description data sheet 93 v1.0, 2010-05 figure 32 ccu6 block diagram channel 0 channel 1 channel 2 t12 dead- time control input / output control cc62 co ut62 cc61 co ut61 cc60 co ut60 co ut63 ct rap channel 3 t13 ccpos0 1 1 1 2 2 2 1 start compare capture 3 multi- channel control address decoder clock control interrupt control trap control compare compar e compar e compar e 1 trap input port control ccpos1 ccpos2 output select output select 3 hall input module kernel ccu6_block_diagram t13hr t12hr
SAL-XC886CLM functional description data sheet 94 v1.0, 2010-05 3.20 controller area network (multican) the multican module contains two fu ll-can nodes operat ing independently or exchanging data and remote fr ames via a gateway function . transmission and reception of can frames is handled in accordance to can specification v2.0 b active. each can node can receive and transmit st andard frames with 11-bit i dentifiers as well as extended frames with 29-bit identifiers. both can nodes share a comm on set of message objects, where each message object may be individually allocated to one of the can nodes. besides serving as a storage container for incoming and outgoing frames, message objects may be combined to build gateways between the can nodes or to setup a fifo buffer. the message objects are organ ized in double chained lists , where each can node has it?s own list of message objects. a can nod e stores frames only into message objects that are allocated to the list of the can no de. it only transmits me ssages from objects of this list. a powerful, command driven li st controller performs all list operations. the bit timings for the can nodes are derived from the peripheral clock ( f can ) and are programmable up to a da ta rate of 1 mbaud. a pair of receive and transmit pins connects each can node to a bus transceiver. figure 33 overview of the multican features ? compliant to iso 11898. multican module kernel mult ic an _xc 8_overview port control can node 0 can control message object buffer 32 objects can node 1 txdc0 rxdc0 txdc1 rxdc1 linked list control f can clock control address decoder & data control access mediator interrupt controller cansrc[7:0] a[13: 2] d[31:0]
SAL-XC886CLM functional description data sheet 95 v1.0, 2010-05 ? can functionality according to can specification v2.0 b active. ? dedicated control registers ar e provided for each can node. ? a data transfer rate up to 1 mbaud is supported. ? flexible and powerful message transfer c ontrol and error hand ling capabilities are implemented. ? advanced can bus bit timing analysis and baud rate detection can be performed for each can node via th e frame counter. ? full-can functionality: a set of 32 message objects can be individually ? allocated (assigned ) to any can node ? configured as transmit or receive object ? setup to handle frames with 11-bit or 29-bit identifier ? counted or assigned a time stamp via a frame counter ? configured to remote monitoring mode ? advanced accept ance filtering: ? each message object provid es an individual acceptan ce mask to filter incoming frames. ? a message object can be configured to accept only standard or only extended frames or to accept both st andard and ex tended frames. ? message objects can be grouped into 4 priority classes. ? the selection of the message to be tran smitted first can be performed on the basis of frame identifier, ide bit and rtr bit according to can arbitration rules. ? advanced message ob ject functionality: ? message objects can be combined to build fifo message buffers of arbitrary size, which is only limited by th e total number of message objects. ? message objects can be linked to form a gateway to automatically transfer frames between 2 different can buses. a single gateway can link any two can nodes. an arbitrary number of gateways may be defined. ? advanced data management: ? the message objects are org anized in double chained lists. ? list reorganizations may be performed an y time, even during full operation of the can nodes. ? a powerful, command driven list contro ller manages the organ ization of the list structure and ensures co nsistency of the list. ? message fifos are based on the list structure and can easily be scaled in size during can operation. ? static allocation commands offer compatibility with tw incan applications, which are not list based. ? advanced interrupt handling: ? up to 8 interrupt output lines are available. most interrupt requests can be individually routed to one of the 8 interrupt output lines. ? message postprocessing notifications c an be flexibly aggregat ed into a dedicated register field of 64 notification bits.
SAL-XC886CLM functional description data sheet 96 v1.0, 2010-05 3.21 analog-to-digital converter the sal-xc886 includes a high-performance 10-bit analog-to-digital converter (adc) with eight multiplexed analog input channels. the adc uses a successive approximation technique to convert t he analog voltage levels from up to eight different sources. the analog input channel s of the adc are available at port 2. features ? successive approximation ? 8-bit or 10-bit resolution (tue of 1 lsb and 2 lsb, respectively) ? eight analog channels ? four independent result registers ? result data protection for slow cpu access (wait-for-read mode) ? single conversion mode ? autoscan functionality ? limit checking for conversion results ? data reduction filter (accumulation of up to 2 conversion results) ? two independent conversion request sources with programmable priority ? selectable conversion request trigger ? flexible interrupt generation wi th configurable service nodes ? programmable sample time ? programmable clock divider ? cancel/restart feature for running conversions ? integrated sample and hold circuitry ? compensation of offset errors ? low power modes 3.21.1 adc clocking scheme a common module clock f adc generates the various clock si gnals used by the analog and digital parts of the adc module: ? f adca is input clock for the analog part. ? f adci is internal clock for the analog part (defin es the time base for conversion length and the sample time). this clock is generat ed internally in the analog part, based on the input clock f adca to generate a correct duty cycle for the analog components. ? f adcd is input clock for the digital part. the internal clock for the analog part f adci is limited to a maximum frequency of 10 mhz. therefore, the adc clock pr escaler must be programmed to a value that ensures f adci does not exceed 10 mhz. the prescaler rati o is selected by bit field ctc in register
SAL-XC886CLM functional description data sheet 97 v1.0, 2010-05 globctr. a prescaling ratio of 32 can be selected when the maximum performance of the adc is not required. figure 34 adc clocking scheme for module clock f adc = 20 mhz, the analog clock f adci frequency can be selected as shown in table 33 . as f adci cannot exceed 10 mhz, bit fiel d ctc should not be set to 00 b when f adc is more than 20 mhz. during slow-down mode where f adc may be reduced to 10 mhz, 5 mhz etc., ctc can be set to 00 b as long as the divided analog clock f adci does not exceed table 33 f adci frequency selection module clock f adc ctc prescaling ratio analog clock f adci 20 mhz 00 b 2 10mhz 01 b 3 6.67mhz 10 b 4 5mhz 11 b (default) 32 625 khz anal og components f adci f adc = f pclk mux arbi ter regi sters interrupts anal og part di gi tal part f adcd f adca 32 clock prescaler ctc 2
SAL-XC886CLM functional description data sheet 98 v1.0, 2010-05 10 mhz. however, it is import ant to note that th e conversion error could increase due to loss of charges on the capacitors, if f adc becomes too low during slow-down mode. 3.21.2 adc conversion sequence the analog-to-digital conversion procedu re consists of th e following phases: ? synchronization phase ( t syn ) ? sample phase ( t s ) ? conversion phase ? write result phase ( t wr ) figure 35 adc conversion timing t s t conv t wr sample bit busy bit conversion phase sample phase write result phase conversion start trigger source interrupt result interrupt t syn channel interrupt f adci
SAL-XC886CLM functional description data sheet 99 v1.0, 2010-05 3.22 on-chip debug support the on-chip debug support (ocds ) provides the basic functionality required for the software development and debugging of xc800-based systems. the ocds design is based on these principles: ? use the built-in debug func tionality of the xc800 core ? add a minimum of hardware overhead ? provide support for mo st of the operations by a monitor program ? use standard interfaces to communicate with the host (a debugger) features ? set breakpoints on instruction addre ss and on address ra nge within the program memory ? set breakpoints on internal ram address range ? support unlimited software brea kpoints in flash/ram code region ? process external breaks via jtag and upon activating a dedicated pin ? step through the program code the ocds functional blocks are shown in figure 36 . the monitor mo de control (mmc) block at the center of ocds system brings together control sign als and supports the overall functionality. the mmc communicates with the xc800 core, primarily via the debug interface, and also receives reset and clock signals. after processing memory address and control signals from the core, the mmc provides proper access to the dedicated extra-memo ries: a monitor rom (holding the code) and a monitor ram (for work -data and monitor-stack). the ocds system is a ccessed through the jtag 1) , which is an interface dedicated exclusively for testing a nd debugging activities and is not normally used in an application. the dedica ted mbc pin is used for exter nal configurati on and debugging control. note: all the debug functionalit y described here can normally be used only after sal- xc886 has been start ed in ocds mode. 1) the pins of the jtag port can be assigned to either t he primary port (port 0) or ei ther of the secondary ports (ports 1 and 2/port 5). user must set the jtag pins (tck and tdi) as input during connection with the ocds system.
SAL-XC886CLM functional description data sheet 100 v1.0, 2010-05 figure 36 ocds block diagram 3.22.1 jtag id register this is a read-only register located inside the jtag module, and is used to recognize the device(s) connected to the jtag interface. its content is shifted out when instruction register contains the idcode command (opcode 04 h ), and the same is also true immediately after reset. the jtag id register co ntents for the sal-xc886 flash devices are given in table 34 . note: the asterisk (*) abo ve denotes all possible device configurations. table 34 jtag id summary device type device name jtag id flash sal-xc886*-8ff 1012 0083 h sal-xc886*-6ff 1012 5083 h jtag module monitor & bootstrap loader control line jtag memory control unit user program memory xc800 core prog & iram addresses debug interface reset clock tms tck tdi tdo tck tdi tdo control memory control debug interface system control unit boot/ monitor rom monitor ram user internal ram reset reset clock prog data monitor mode control mbc - parts of ocds suspend control ocds_xc886c-block_diagram-um-v0.2
SAL-XC886CLM functional description data sheet 101 v1.0, 2010-05 3.23 chip identification number the sal-xc886 identity (id) register is located at p age 1 of address b3 h . the value of id register is 09 h . however, for easy id entification of produc t variants, the chip identification number, which is an unique number assigned to each product variant, is available. the differentiati on is based on the product, variant type and device step information. two methods are provided to read a device?s chip ident ification number: ? in-application subroutine, get_chip_info ? bootstrap loader (bsl) mode a table 35 lists the chip identifica tion numbers of available sal-xc886 device variants. table 35 chip identification number product variant chip identification number ab-step ab-step ac-step xc886clm-8ffa 5v - 09900102 h 0b900102 h xc886lm-8ffa 5v - 09900122 h 0b900122 h xc886clm-6ffa 5v - 09951502 h 0b951502 h xc886lm-6ffa 5v - 09951522 h 0b951522 h xc886cm-8ffa 5v - 09980102 h 0b980102 h xc886c-8ffa 5v - 09980142 h 0b980142 h xc886-8ffa 5v - 09980162 h 0b980162 h xc886cm-6ffa 5v - 099d1502 h 0b9d1502 h xc886c-6ffa 5v - 099d1542 h 0b9d1542 h xc886-6ffa 5v - 099d1562 h 0b9d1562 h
SAL-XC886CLM electrical parameters data sheet 102 v1.0, 2010-05 4 electrical parameters chapter 4 provides the characteristics of the electrical par ameters which are implementation-specific for the sal-xc886. 4.1 general parameters the general parameters are described here to aid the us ers in interpreting the parameters mainly in section 4.2 and section 4.3 . 4.1.1 parameter interpretation the parameters listed in th is section represent partly t he characteristics of the sal- xc886 and partly its requireme nts on the system. to aid in terpreting the parameters easily when evaluating them for a design, they are indi cated by the abbreviations in the ?symbol? column: ? cc these parameters indicate c ontroller c haracteristics, which are distinctive features of the sal-xc886 and must be regarded for a system design. ? sr these parameters indicate s ystem r equirements, which must be provided by the microcontroller system in which the sal-xc886 is designed in.
SAL-XC886CLM electrical parameters data sheet 103 v1.0, 2010-05 4.1.2 absolute maximum rating maximum ratings are the extreme limits to which the sal-xc886 can be subjected to without perm anent damage. note: stresses above thos e listed under ?absolute ma ximum ratings? may cause permanent damage to the device. this is a stre ss rating only and functional operation of the device at these or any other condition s above those indicated in the operational sections of th is specification is not impl ied. exposure to absolute maximum rating conditions for exten ded periods may affect device reliability. during absolute maximum rating overload conditions ( v in > v ddp or v in < v ss ) the voltage on v ddp pin with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. table 36 absolute maximu m rating parameters parameter symbol limit values unit notes min. max. ambient temperature t a -40 150 c under bias storage temperature t st -65 150 c 1) 1) not subjected to production test, verified by design/characterization. junction temperature t j -40 160 c under bias 1) voltage on power supply pin with respect to v ss v ddp -0.5 6 v 1) voltage on any pin with respect to v ss v in -0.5 v ddp + 0.5 or max. 6 v whichever is lower 1) input current on any pin during overload condition i in -10 10 ma 1) absolute sum of all input currents during overload condition | i in |? 50 ma 1)
SAL-XC886CLM electrical parameters data sheet 104 v1.0, 2010-05 4.1.3 operating conditions the following operating conditi ons must not be exceeded in order to ensure correct operation of the sal-xc886. all parameters mentioned in the following table refer to these operating conditions , unless otherwise noted. table 37 operating condition parameters parameter symbol limit values unit notes/ conditions min. max. digital power supply voltage v ddp 4.5 5.5 v 5v device digital ground voltage v ss 0v digital core supply voltage v ddc 2.3 2.7 v system clock frequency 1) 1) f sys is the pll output clock. during normal operating mode, cpu clock is f sys / 4. please refer to figure 25 for detailed description. f sys 74.0 86.0 mhz ambient temperature t a -40 150 c sal-xc886...
SAL-XC886CLM electrical parameters data sheet 105 v1.0, 2010-05 4.2 dc parameters the electrical characteristics of the dc parameters are detaile d in this section. 4.2.1 input/output characteristics table 38 provides the characteristics of th e input/output pins of the sal-xc886. table 38 input/output characteristi cs (operating conditions apply) parameter symbol limit values unit test conditions min. max. v ddp = 5 v range output low voltage v ol cc ? 1.0 v i ol =15ma ?1.0v i ol = 5 ma, current into all pins > 60 ma ?0.4v i ol = 5 ma, current into all pins 60 ma output high voltage v oh cc v ddp - 1.0 ?v i oh =-15ma v ddp - 1.0 ?v i oh = -5 ma, current from all pins > 60 ma v ddp - 0.4 ?v i oh = -5 ma, current from all pins 60 ma input low voltage on port pins (all except p0.0 & p0.1) v ilp sr ? 0.3 v ddp v cmos mode input low voltage on p0.0 & p0.1 v ilp0 sr -0.2 0.3 v ddp v cmos mode input low voltage on reset pin v ilr sr ? 0.3 v ddp v cmos mode input low voltage on tms pin v ilt sr ? 0.3 v ddp v cmos mode input high voltage on port pins (all except p0.0 & p0.1) v ihp sr 0.7 v ddp ? v cmos mode input high voltage on p0.0 & p0.1 v ihp0 sr 0.7 v ddp v ddp v cmos mode
SAL-XC886CLM electrical parameters data sheet 106 v1.0, 2010-05 input high voltage on reset pin v ihr sr 0.7 v ddp ? v cmos mode input high voltage on tms pin v iht sr 0.75 v ddp ? v cmos mode input hysteresis on port pins hysp cc 0.07 v ddp ? v cmos mode 1) input hysteresis on xtal1 hysx cc 0.07 v ddc ?v 1) input low voltage at xtal1 v ilx sr v ss - 0.5 0.3 v ddc v input high voltage at xtal1 v ihx sr 0.7 v ddc v ddc + 0.5 v pull-up current i pu sr ? -10 a v ihp,min -150 ? a v ilp,max pull-down current i pd sr ? 10 a v ilp,max 150 ? a v ihp,min input leakage current i oz1 cc -2 2 a0 < v in < v ddp , t a 150 c 2) input current at xtal1 i ilx cc -10 10 a overload current on any pin i ov sr -5 5 ma 3) absolute sum of overload currents | i ov |sr? 25 ma 3) voltage on any pin during v ddp power off v po sr ? 0.3 v 4) maximum current per pin (excluding v ddp and v ss ) i m sr sr ? 15 ma maximum current for all pins (excluding v ddp and v ss ) | i m |sr? 90 ma table 38 input/output characteristi cs (operating conditions apply) (cont?d) parameter symbol limit values unit test conditions min. max.
SAL-XC886CLM electrical parameters data sheet 107 v1.0, 2010-05 maximum current into v ddp i mvddp sr ? 120 ma 3) maximum curr ent out of v ss i mvss sr ? 120 ma 3) 1) not subjected to production test, verified by design/characterization. hysteresis is implemented to avoid meta stable states and switching due to internal ground bounce. it cannot be guaranteed that it suppresses switching due to external system noise. 2) an additional error current ( i inj ) will flow if an overload current fl ows through an adjacent pin. tms pin and reset pin have internal pull devices and are not incl uded in the input leakage current characteristic. 3) not subjected to production test, verified by design/characterization. 4) not subjected to production test, verified by design/characterization. however, for applications with strict low power-down current requirements, it is mandatory that no active voltage source is supplied at any gpio pin when v ddp is powered off. table 38 input/output characteristi cs (operating conditions apply) (cont?d) parameter symbol limit values unit test conditions min. max.
SAL-XC886CLM electrical parameters data sheet 108 v1.0, 2010-05 4.2.2 supply threshold characteristics table 39 provides the characteristics of the supply threshold in the sal-xc886. figure 37 supply th reshold parameters table 39 supply threshold parameters (operating conditions apply) parameters symbol limit values unit min. typ. max. v ddc prewarning voltage 1) 1) detection is disabled in power-down mode. v ddcpw cc 2.2 2.3 2.4 v v ddc brownout voltage in active mode 1) v ddcbo cc 2.0 2.1 2.2 v ram data retention voltage v ddcrdr cc 0.9 1.0 1.1 v v ddc brownout voltage in power-down mode 2) 2) detection is enabled in both active and power-down mode. v ddcbopd cc 1.3 1.5 1.7 v v ddp prewarning voltage 3) 3) detection is enabled for external power supply of 5.0v. v ddppw cc 3.4 4.0 4.6 v power-on reset voltage 2)4) 4) the reset of evr is extended by 300 s typically after the vddc reaches the power-on reset voltage. v ddcpor cc 1.3 1.5 1.7 v vddp vddc v ddppw v ddcpor v ddcpw v ddcbo v ddcbopd 5.0v 2.5v v ddcrdr
SAL-XC886CLM electrical parameters data sheet 109 v1.0, 2010-05 4.2.3 adc characteristics the values in the table be low are given for an analog power supply bet ween 4.5 v to 5.5 v. all ground pins ( v ss ) must be exter nally connected to one sing le star point in the system. the voltage difference between th e ground pins must not exceed 200mv. table 40 adc characteristics (o perating conditions apply; v ddp = 5v range) parameter symbol limit values unit test conditions/ remarks min. typ . max. analog reference voltage v aref sr v agnd + 1 v ddp v ddp + 0.05 v 1) analog reference ground v agnd sr v ss - 0.05 v ss v aref - 1 v 1) analog input voltage range v ain sr v agnd ? v aref v adc clocks f adc ? 20 25.8 mhz module clock 1) f adci ? ? 10 mhz internal analog clock 1) see figure 34 sample time t s cc (2 + inpcr0.stc) t adci s 1) conversion time t c cc see section 4.2.3.1 s 1) total unadjusted error |tue| cc ? ? 1 lsb 8-bit conversion 2) ? ? 2 lsb 10-bit conversion 2) differential nonlinearity |ea dnl | cc ? 1 ? lsb 10-bit conversion 1) integral nonlinearity |ea inl | cc ? 1 ? lsb 10-bit conversion 1) offset |ea off | cc ? 1 ? lsb 10-bit conversion 1) gain |ea gain | cc ? 1 ? lsb 10-bit conversion 1) overload current coupling factor for analog inputs k ova cc ? ? 1.0 x 10 -4 ? i ov >0 1)3) ??1.5x 10 -3 ? i ov <0 1)3)
SAL-XC886CLM electrical parameters data sheet 110 v1.0, 2010-05 overload current coupling factor for digital i/o pins k ovd cc ? ? 5.0 x 10 -3 ? i ov >0 1)3) ??1.0x 10 -2 ? i ov <0 1)3) switched capacitance at the reference voltage input c arefsw cc ? 10 20 pf 1)4) switched capacitance at the analog voltage inputs c ainsw cc ? 5 7 pf 1)5) input resistance of the reference input r aref cc ? 1 2 k ? 1) input resistance of the selected analog channel r ain cc ? 1 1.5 k ? 1) 1) not subjected to production test, verified by design/characterization 2) tue is tested at v aref =5.0v, v agnd =0v, v ddp =5.0v. 3) an overload current ( i ov ) through a pin injects a certain error current ( i inj ) into the adjacent pins. this error current adds to the respective pin?s leakage current ( i oz ). the amount of error current depends on the overload current and is defined by the overload coupling factor k ov . the polarity of the injected error current is inverse compared to the polarity of the overload current that produces it. the total current through a pin is | i tot | = | i oz1 | + (| i ov | k ov ). the additional error current may distort the input voltage on analog inputs. 4) this represents an equivalent switched capacitance. this capacitance is not switched to the reference voltage at once. instead of this, smaller capacitances are successively switched to the reference voltage. 5) the sampling capacity of the conversion c-network is pre-charged to v aref /2 before connecting the input to the c-network. because of the parasitic elements, the voltage measured at anx is lower than v aref /2. table 40 adc characteristics (o perating conditions apply; v ddp = 5v range) (cont?d) parameter symbol limit values unit test conditions/ remarks min. typ . max.
SAL-XC886CLM electrical parameters data sheet 111 v1.0, 2010-05 figure 38 adc input circuits v agndx r ext analog input circuitry v ain c ext anx c ainsw r ain, on v agndx reference voltage input circuitry c arefsw r aref, on v arefx v aref
SAL-XC886CLM electrical parameters data sheet 112 v1.0, 2010-05 4.2.3.1 adc conversion timing conversion time, t c = t adc ( 1 + r (3+n+stc) ) , where r=ctc+2 for ctc=00 b , 01 b or 10 b , r = 32 for ctc = 11 b , ctc = conversion time co ntrol (globctr.ctc), stc = sample time control (inpcr0.stc), n = 8 or 10 (for 8-bit and 10 -bit conversion respectively), t adc =1/ f adc
SAL-XC886CLM electrical parameters data sheet 113 v1.0, 2010-05 4.2.4 power supply current table 41 and table 42 provide the characteristics of the power supply current in the sal-xc886. table 41 power supply curre nt parameters (operati ng conditions apply; v ddp = 5v range) parameter symbol limit va lues unit test condition typ. 1) 1) the typical i ddp values are periodically measured at t a =+25 c and v ddp =5.0v. max. 2) 2) the maximum i ddp values are measured under worst case conditions ( t a = + 150 c and v ddp =5.5v). v ddp = 5v range active mode i ddp 22.9 29.9 ma 3) 3) i ddp (active mode) is measured with: cpu clock and inpu t clock to all peripherals running at 20 mhz(set by on-chip oscillator of 10 mhz and ndiv in pll_con to 1001 b ), reset = v ddp , no load on ports. idle mode i ddp 17.8 23.7 ma 4) 4) i ddp (idle mode) is measured with: cpu clock disabled, wa tchdog timer disabled, input clock to all peripherals enabled and running at 20 mhz, reset = v ddp , no load on ports. active mode with slow-down enabled i ddp 12.0 16.6 ma 5) 5) i ddp (active mode with slow-down mode) is measured with: cpu clock and input clock to all peripherals running at 2.5 mhz by setting clkrel in cmcon to 0110 b , reset = v ddp , no load on ports. idle mode with slow-down enabled i ddp 10.0 14.2 ma 6) 6) i ddp (idle mode with slow-down mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enabled and running at 2.5 mhz by setting clkrel in cmcon to 0110 b , reset = v ddp , no load on ports.
SAL-XC886CLM electrical parameters data sheet 114 v1.0, 2010-05 table 42 power down current (o perating conditions apply; v ddp = 5v range) parameter symbol limit va lues unit test condition typ. 1) 1) the typical i pdp values are measured at v ddp =5.0v. max. 2) 2) the maximum i pdp values are measured at v ddp =5.5v. v ddp = 5v range power-down mode i pdp 110 a t a =+25 c 3)4) 3) i pdp has a maximum value of 500 a at t a = + 150 c. 4) i pdp is measured with: reset = v ddp , v agnd = v ss , rxd/int0 = v ddp ; rest of the ports are programmed to be input with either internal pull devices enabled or driven externally to ensure no floating inputs. -30 a t a =+85 c 4)5) 5) not subjected to production test, verified by design/characterization.
SAL-XC886CLM electrical parameters data sheet 115 v1.0, 2010-05 4.3 ac parameters the electrical characteristics of the ac parameters are detaile d in this section. 4.3.1 testing waveforms the testing waveforms for rise /fall time, output delay an d output high impedance are shown in figure 39 , figure 40 and figure 41 . figure 39 rise/fall time parameters figure 40 testing waveform, output delay figure 41 testing waveform, output high impedance 10% 90% 10% 90% v ss v ddp t r t f v dde / 2 te st p oin ts v dde / 2 v ss v ddp v load + 0.1 v v oh - 0.1 v timing reference points v load - 0.1 v v ol - 0.1 v
SAL-XC886CLM electrical parameters data sheet 116 v1.0, 2010-05 4.3.2 output rise/fall times table 43 provides the characteristics of the output rise/fall ti mes in the sal-xc886. figure 42 rise/fall times parameters table 43 output rise/fall times parame ters (operating conditions apply) parameter symbol limit values unit test conditions min. max. v ddp = 5v range rise/fall times t r , t f ?10 ns20 pf. 1)2)3) 1) rise/fall time measurements are taken with 10% - 90% of pad supply. 2) not all parameters are 100% tested, but are verified by design/characterization and test correlation. 3) additional rise/fall time valid for c l = 20pf - 100pf @ 0.125 ns/pf. t r 10% 90% 10% 90% t f v ss v ddp
SAL-XC886CLM electrical parameters data sheet 117 v1.0, 2010-05 4.3.3 power-on reset and pll timing table 47 provides the characteristics of the power-on reset and pl l timing in the sal- xc886. table 44 power-on reset and pll timi ng (operating co nditions apply) parameter symbol limit values unit test conditions min. typ. max. pad operating voltage v pad cc 2.3 ? ? v 1) 1) not all parameters are 100% tested, but are verified by design/characterization and test correlation. on-chip oscillator start-up time t oscst cc ? ? 500 ns 1) flash initialization time t finit cc ? 160 ? s 1) reset hold time t rst sr ? 500 ? s v ddp rise time (10% ? 90%) 500 s 1)2) 2) reset signal has to be active (low) until v ddc has reached 90% of its maximum value (typ. 2.5 v). pll lock-in in time t lock cc ? ? 200 s 1) pll accumulated jitter d p ??0.7ns 1)3) 3) pll lock at 80 mhz using a 4 mhz external oscillator. the pll divider settings are k = 2, n = 40 and p = 1.
SAL-XC886CLM electrical parameters data sheet 118 v1.0, 2010-05 figure 43 power-on reset timing vddp pads vddc v pad osc t oscst pll reset initialization ready to read flash state pll unlock pll lock 1) 2) 3) t lock t finit 1)pad state undefined 2)enps control 3)as programmed i)until evr is stable ii)until pll is locked iii) until flash go to ready-to-read iv) cpu reset is released; boot rom software begin execution reset t rst
SAL-XC886CLM electrical parameters data sheet 119 v1.0, 2010-05 4.3.4 on-chip oscillator characteristics table 45 provides the characteristics of th e on-chip oscillator in the sal-xc886. table 45 on-chip oscillator characteri stics (operating conditions apply) parameter symbol limit values unit test conditions min. typ. max. nominal frequency f nom cc 9.75 10 10.25 mhz under nominal conditions 1) 1) nominal condition: v ddc =2.5v, t a =+25 c. long term frequency deviation ? f lt cc 0 ? 6.0 % with respect to f nom , over lifetime and temperature (125 c to 150 c), for one given device after trimming -5.0 ? 5.0 % with respect to f nom , over lifetime and temperature (-10 c to 125 c), for one given device after trimming -6.0 ? 0 % with respect to f nom , over lifetime and temperature (-40 c to -10 c), for one given device after trimming short term frequency deviation ? f st cc -1.0 ? 1.0 % within one lin message (<10 ms .... 100 ms)
SAL-XC886CLM electrical parameters data sheet 120 v1.0, 2010-05 4.3.5 external clock drive xtal1 table 46 shows the parameters t hat define the external cl ock supply for sal-xc886. these timing parameters are bas ed on the direct xtal1 dr ive of clock input signals. they are not applicable if an external cryst al or ceramic resona tor is considered. figure 44 external clock drive xtal1 table 46 external clock drive character istics (operating conditions apply) parameter symbol limit values unit test conditions min. max. oscillator period t osc sr 100 250 ns 1)2) 1) the clock input signals with 45-55% duty cycle are used. 2) not all parameters are 100% tested, but are verified by design/characterization and test correlation. high time t 1 sr 25 - ns 2)3) 3) the clock input signal must reach the defined levels v ilx and v ihx . low time t 2 sr 25 - ns 2)3) rise time t 3 sr - 20 ns 2)3) fall time t 4 sr - 20 ns 2)3) t 1 t 2 t 3 t 4 t osc 0.5 v ddc v ihx v ilx
SAL-XC886CLM electrical parameters data sheet 121 v1.0, 2010-05 4.3.6 jtag timing table 47 provides the characteristics of the jtag timing in the sal-xc886. figure 45 tck clock timing table 47 tck clock timing (operating conditio ns apply; cl = 50 pf) parameter symbol limits unit test conditions min max tck clock period t tck sr 50 - ns 1) 1) not all parameters are 100% tested, but are verified by design/characterization and test correlation. tck high time t 1 sr 20 ? ns 1) tck low time t 2 sr 20 - ns 1) tck clock rise time t 3 sr - 4 ns 1) tck clock fall time t 4 sr - 4 ns 1) table 48 jtag timing (operating conditions apply; cl = 50 pf) parameter symbol limits unit test conditions min max tms setup to tck t 1 sr 8 - ns 1) tms hold to tck t 2 sr 24 - ns 1) tdi setup to tck t 1 sr 11 - ns 1) tdi hold to tck t 2 sr 24 - ns 1) tdo valid output from tck t 3 cc - 27 ns 1) tck t 4 0.9 v ddp t 3 t 1 0.1 v ddp t 2 t tck 0.5 v ddp
SAL-XC886CLM electrical parameters data sheet 122 v1.0, 2010-05 figure 46 jtag timing tdo high impedance to valid output from tck t 4 cc - 35 ns 1) tdo valid output to high impedance from tck t 5 cc - 27 ns 1) 1) not all parameters are 100% tested, but are verified by design/characterization and test correlation. table 48 jtag timing (operating conditions apply; cl = 50 pf) (cont?d) parameter symbol limits unit test conditions min max tms tdi tck tdo t 1 t 2 t 1 t 2 t 4 t 3 t 5
SAL-XC886CLM electrical parameters data sheet 123 v1.0, 2010-05 4.3.7 ssc master mode timing table 49 provides the characteristics of the ssc timing in the sal-xc886. figure 47 ssc master mode timing table 49 ssc master mode timing (ope rating conditions apply; cl = 50 pf) parameter symbol limit values unit test conditions min. max. sclk clock period t 0 cc 2*t ssc ?ns 1)2) 1) t sscmin =t cpu =1/f cpu . when f cpu = 20 mhz, t 0 = 100ns. t cpu is the cpu clock period. 2) not all parameters are 100% tested, but are verified by design/characterization and test correlation. mtsr delay from sclk t 1 cc 0 8 ns 2) mrst setup to sclk t 2 sr 24 ? ns 2) mrst hold from sclk t 3 sr 0 ? ns 2) ssc_tmg1 sclk 1) mtsr 1) t 1 t 1 mrst 1) t 3 data valid t 2 t 1 1) this timing is based on the following setup: con.ph = con.po = 0. t 0
SAL-XC886CLM package and quality declaration data sheet 124 v1.0, 2010-05 5 package and quality declaration chapter 5 provides the information of the sal -xc886 package and reliability section. 5.1 package parameters table 50 provides the thermal ch aracteristics of the package used in sal-xc886. table 50 thermal characteristics of the packages parameter symbol limit values unit notes min. max. pg-tqfp-48 thermal resistance junction case r tjc cc - 11.6 k/w 1)2) 1) the thermal resistances between the case and the ambient ( r tca ) , the lead and the ambient ( r tla ) are to be combined with the thermal resistances between the junction and the case ( r tjc ), the junction and the lead ( r tjl ) given above, in order to calculate the total thermal resistance between the junction and the ambient ( r tja ). the thermal resistances between the case and the ambient ( r tca ), the lead and the ambient ( r tla ) depend on the external system (pcb, case) characteristics, and are under user responsibility. the junction temperature can be calculated using the following equation: t j = t a + r tja p d , where the r tja is the total thermal resistance between the junction and the ambient. this total junction ambient resistance r tja can be obtained from the upper four partial thermal resistances, by a) simply adding only the two thermal resistances (junction lead and lead ambient), or b) by taking all four resistances into account, depending on the precision needed. 2) not all parameters are 100% tested, but are verified by design/characterization and test correlation. thermal resistance junction lead r tjl cc - 33.2 k/w 1)2)
SAL-XC886CLM package and quality declaration data sheet 125 v1.0, 2010-05 5.2 package outline figure 48 shows the package outl ines of the sal-xc886. figure 48 pg-tqfp-48 package outline 1 index marking 48 0.22 7 1) 0.2 0.2 a-b m 0.08 1) a 7 9 d b 0.05 gpp09237 2) 0.5 5.5 0.1 c 0.05 d 48x c 48x h 9 a-b a-b d d 4x 1.2 max. 0.08 1 0.05 h 0.125 +0.075 0.15 0.6 max. 7? -0.035 1) does not include plastic or metal protrusion of 0.25 max. per side 2) does not include dambar protrusion of 0.08 max. per side
SAL-XC886CLM package and quality declaration data sheet 126 v1.0, 2010-05 5.3 quality declaration table 51 shows the characteristics of the quality parameters in the sal-xc886. table 51 quality parameters parameter symbol limit values unit notes min. typ. max. operation lifetime when the device is used at the five stated t a 1) 1) this lifetime refers only to the time when the device is powered-on. t op - - 500 hours t a = 150 c 2) 2) not all parameters are 100% tested, but are verified by design/characterization and test correlation. - - 1000 hours t a = 140 c 2) - - 2000 hours t a = 125 c 2) - - 10000 hours t a = 85 c 2) - - 1500 hours t a = -40 c 2) operation lifetime when the device is used at the two stated t a 1) t op2 - - 18000 hours t a = 108 c 2) - - 130000 hours t a = 27 c 2) weighted average temperature 3) 3) this parameter is derived based on the arrhenius model. t wa - 107 - c for 15000 hours 2) esd susceptibility according to human body model (hbm) for all pins (except v ddc ) v hbm - - 2000 v conforming to eia/jesd22- a114-b 2) esd susceptibility according to charged device model (cdm) pins v cdm - - 750 v conforming to jesd22-c101-c 2)
www.infineon.com published by infineon technologies ag


▲Up To Search▲   

 
Price & Availability of SAL-XC886CLM

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X